Or particularly well suited to -a and -F:perl -lne 'print "@{[(split /:/)[0, 4]]}"' /etc/passwd
perl -F: -lane 'print "@F[0, 4]"' /etc/passwd
--
[ e d @ h a l l e y . c c ]
In reply to Re^3: printing passwd file
by halley
in thread printing passwd file
by madmonster99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |