in reply to Re^3: printing passwd file
in thread printing passwd file
Well, if you want to play golf, you can even leave out the spaces:
or leave out perl completely:perl -F: -lane 'print "@F[0, 4]"' /etc/passwd
of which the end reminds me to this classic error message:cut -d: -f1,5 /etc/passwd|tr : \
$ \(- -bash: (-: command not found
|
|---|