Author: Daniel S. Lewart
Date: 28-10-01 18:46
(posted by Dan Langille)
Your one-line shell script:
cat /etc/passwd | cut -d: -f1 | grep -v \#
should be rewritten as:
cut -d: -f1 /etc/passwd | grep -v \#
or, better yet, as a Perl script:
perl -le 'print while $_=getpwent'
|
|