Peter da Silva <peter@abbnm.com> wrote:
+---------------
| Gareth McCaughan <Gareth.McCaughan@pobox.com> wrote:
| > - In practice, why bother typing that? Just say
| > egrep /sbin/nologin /etc/passwd
| > if you want a list you can eyeball.
|
| Because the resulting list is harder to cut-and-paste into a report,
| feed mail, or whatever.
+---------------
Sheesh! Hey, c'mon, Peter, you know better than that:
egrep /sbin/nologin /etc/passwd | sed -e 's/:.*$//'
And it's even fewer characters to type than the Perl version!! ;-} ;-}
-Rob
-----
Rob Warnock, 31-2-510 rpw3@sgi.com
Network Engineering http://reality.sgi.com/rpw3/
Silicon Graphics, Inc. Phone: 650-933-1673
1600 Amphitheatre Pkwy. PP-ASEL-IA
Mountain View, CA 94043