I suppose a simple way would be to use grep and then test the return value (which is stored in $? and is 1 if the string isn't found and 0 if it is). This may not be the best way, but it's one way to do it.
Edit: also, you really could have used a more descriptive thread title.
Last edited by Nylex; 09-07-2008 at 02:20 AM.
|