Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How do I go about doing this:
Using the sort, grep and less commands (connected with a pipe), sort the /etc/passwd file in alphabetical order and display only the lines ending in the word "false".
grep false$ /etc/passwd | sort | less
I just tried this on Mac OS X 10.6, but I feel that it should work on Linux also:
sort /etc/passwd | grep '^.*false$' | less
Required, but never shown