[CentOS] simple if statement
Tom Brown
tom at ng23.netFri Feb 27 15:01:29 UTC 2009
- Previous message: [CentOS] simple if statement
- Next message: [CentOS] Mod Security + CLAMAV -> Problem scan file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> A ":" on it's own will do what you want. > > if [ "$remaining" = "" ] > then > : > else > kill -9 $remaining > fi > > But better would be > > if [ -n "$remaining" ] > then > kill -9 $remaining > fi > > thanks to all for the suggestions
- Previous message: [CentOS] simple if statement
- Next message: [CentOS] Mod Security + CLAMAV -> Problem scan file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list