[TriLUG] Scripting question

Greg Cox glcox at pobox.com
Thu Jan 9 16:40:51 EST 2003


> How can I get it to do an exact match?  From the command
> line this works:
> 
> grep '\<emma\>' /etc/passwd

Try
    grep "\b$userid\b" /etc/passwd
in the loop.




More information about the TriLUG mailing list