How to list out i"dle users only" using finger command? (Commandline)
$finger
Login Name Tty Idle Login Time Where
ravikumar ravikumar *:0 - Sun 19:54 console
ravikumar ravikumar *pts/0 2:36 Sun 19:56
ravikumar ravikumar *pts/1 - Sun 22:08
$ finger | tr -s " " | sort -k 4
ravikumar ravikumar *pts/0 2:47 Sun 19:56
Login Name Tty Idle Login Time Where
ravikumar ravikumar *:0 - Sun 19:54 console
ravikumar ravikumar *pts/1 - Sun 22:08
In the above usage how to get the number of idle users,
so that I can pipe with head command?
Opensuse uses '-' to represent idle state, suppose if Blank space is used
to indicate idle state Means, How to select the idle users, since "tr -s" is useless?