Author: Todor Zahariev
Date: 28-10-01 18:40
(written by Todor Zahariev, posted by Dan Langille)
I have suggestion for printing user:
cat /etc/passwd | cut -d: -f1 | grep -v \#
change to:
grep -v \# /etc/passwd | cut -d: -f1
reasons:
1. save 1 pipe and 1 cat execution.
2. move thru the pipe less data (removed lines with #)
|
|