Kent writes:
> How can I test to see if the word "tuber" is in the /etc/passwd file,
> reliably, and take an action if it is, and take a different action if
> it's not, in a bash shell script?

By testing the exit status of grep.
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to