in reply to Re^2: printing passwd file
in thread printing passwd file
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 ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: printing passwd file
by ambrus (Abbot) on Mar 14, 2005 at 18:28 UTC |