XP is just a number | |
PerlMonks |
Re: parsing output of UNIX `who` commandby Anonymous Monk |
on Oct 02, 2006 at 09:21 UTC ( [id://575852]=note: print w/replies, xml ) | Need Help?? |
Given that backticks in list context return a list of lines, and each line starts with the username (which you want to use as a key), I'd do something like:
who -q just gives the total number of users logged in on my system, so that's not very useful for counting how often each user is logged in.
In Section
Seekers of Perl Wisdom
|
|