e0055996 |
07-15-2014 01:10 PM |
What is the correct cut command.
How could I use the cut command to extract a list of usernames and login shells from the /etc/passwd file, where the resulting usernames and login shells are separated by a single space. Sort the resulting list in ascending alphabetical order, using the login shell as the primary key, and the username as a secondary key. Store the result in the newly created file~/usershells.txt.
This is the command I attempted cut -d /etc/passwd -k7 -k1 | sort > ~/usershells.txt
my kids say this is why at over 40 something's I should leave alone:confused:
|