example on the cut slide to display a list of users logged in.
example on the cut slide to display a list of users logged in.
I know who will be used, but in the delimiter part dont know how to specify a space or a tab |
Specify a space like
Code:
echo "a b c"|cut -d" " -f2 This should do the trick Code:
who -u|cut -d" " -f1|uniq |
Code:
[demo@localhost ~]$ who | cut -d " " -f 1 |
Thanks All
|
All times are GMT -5. The time now is 08:39 AM. |