Having trouble with a simple script
Hi guys, this is my first post.. starting with what is probably a rather newbie question:
I need to create a simple awk script to list current users logged on more than once. So far I have who | awk '{ logins[$1] = logins[$1] + 1 } END { for (i in logins) print logins[i], i }' That lists the current users logged on and how many times they are logged on, but I need to use an 'if' statement to then show only the users logged on more than once. Thanks in advance for any help :D |
Code:
if [[ $i -gt 1 ]] |
All times are GMT -5. The time now is 05:35 PM. |