i want to print the idle time of the users more than 10 days.
for eg:
my "w" command output is like below.
-sh-3.00$ w
03:47:41 up 13 days, 16:59, 3 users, load average: 10.00, 10.00, 10.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root :0 - 08Jan07 ?xdm? 2days 0.18s /usr/bin/gnome-
root pts/1 :0.0 08Jan07 13days 0.00s 0.00s bash
krrishv pts/2 221-135-33-1.sif 02:55 1.00s 0.05s 0.00s w
i am printing $1 & $5 alone using awk. Now how do i loop it and check each line and if $5 is gt 13 than i want to echo it with the user name $1