Engel-07
New member
Hello,
I don't have any reference here...but I'm trying to do a simple grep command...and it's not working
. I would like to search for wordA or wordB or wordC in the $stdout. Searching for just one word is easy...but i would like multiple words.
I'm trying to write it as just a 1 line command.
#!/bin/sh
ck_err=`cat $stdout|grep 'wordA' | wc -l`
echo 'FTP Errors Detected: '$ck_err
if [ "$ck_err" -ne "0" ]; then
blah blah blah
fi
thanks...
I don't have any reference here...but I'm trying to do a simple grep command...and it's not working
I'm trying to write it as just a 1 line command.
#!/bin/sh
ck_err=`cat $stdout|grep 'wordA' | wc -l`
echo 'FTP Errors Detected: '$ck_err
if [ "$ck_err" -ne "0" ]; then
blah blah blah
fi
thanks...

