4 ms·
To print all users from /etc/password from the command-line would probably not be done by writing a C program, by most (sane) people. I used to work with a guy
by hugh3 15y ago
To print all users from /etc/password from the command-line would probably not be done by writing a C program, by most (sane) people.
I used to work with a guy who would have done it that way. I do admit he was not entirely sane.
Personally I'd do it with two or three lines of python rather than awk, even though I theoretically know awk, because it's quicker for me to type the Python than to remember the syntax for the awk (wait, which brackets are which again?).
That's not an argument against learning awk, of course, that's an argument for why I should learn awk slightly better.
- kisielk 15y agoYou sound like an exact match of the audience of this book.