Hi ,
I m running the following command
who -u | nawk ' { if ( substr($5,1,2) > 9 ) print $0 }'
This is just to get the list of users who have logged on after 9. But this line comes back with nothing. At the same time if I just say
who -u | nawk ' { print substr($5,1,2) }'
It shows me the substr of the time and some of the records have time more than 9. So I fail to understand what its doing.
Any pointers please.
Thnx