BLFS profile group/user checking

Thomas Pegg 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.

-- 
Thomas 
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...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxfromscratch.org/pipermail/alfs-discuss/attachments/20040521/a77b814c/attachment.sig>


More information about the alfs-discuss mailing list