[CentOS] Slightly OT: check creation of a group
Geoff Galitz
geoff at galitz.orgMon Mar 1 16:12:15 UTC 2010
- Previous message: [CentOS] RE: Slightly OT: check creation of a group
- Next message: [CentOS] Slightly OT: check creation of a group
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Apparently I can't seem to "negate" the test, e. g. something like > > if !(grep medintux /etc/group) > > Any suggestions for the correct syntax here ? > I'd do it like this: grep medintux /etc/group if [ $? != 0 ]; then echo "Group not found" fi --------------------------------- Geoff Galitz Blankenheim NRW, Germany http://www.galitz.org/ http://german-way.com/blog/
- Previous message: [CentOS] RE: Slightly OT: check creation of a group
- Next message: [CentOS] Slightly OT: check creation of a group
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list