home Mail List
Info
Info
Meetings
Goals
Upcoming
Projects
FAQ
Security
Links

[Date Prev][Date Next] [Chronological] [Thread] [Top]

[NMLUG] grep help



From: "Jason Davis" <jason@claim.md>
Sent: Wednesday, March 16, 2005 3:40 PM


> this works for me
> 
> if grep "audio.*,*fred,*" /etc/group > /dev/null; then echo "yes"; fi
> 
> 
> here is the line from /etc/group
> audio:x:29:mohadib,fred

  Unfortunately, that would also succeed for
kaudiod:x:129:mohadib,freddy




Please send sugestions and comments to webmaster@nmlug.org.
Valid XHTML 1.1! Valid CSS! Powered by Debian Powered by Apache