BLFS profile group/user checking
thomasp at linuxfromscratch.org
Fri May 21 13:54:26 PDT 2004
On Fri, 2004-05-21 at 13:57, Kevin P. Fleming wrote:
> The sections of the profiles that add groups and users use grep to check
> /etc/group and /etc/passwd to check if the groups and users to be added
> already exist.
> However, the profiles are not using "grep -q", but instead are
> redirecting the output of grep to /dev/null. "grep -q" is much cleaner.
Guess I should have looked at the grep man page, the /dev/null was one
that I've used in my own profiles, and it worked for me so I just
decided to use it, but your right grep -q is cleaner, will change all
checks to use grep -q.
LFS User : 4729
Linux User : 298329
warpcore - 15:53:40 up 17:04, 2 users, load average: 0.08, 0.09, 0.03
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the alfs-discuss