Mal Herring wrote:
Hi list, I have run into a little difficulty...
I am writing a script that :
Checks page 1 for text, then checks page2 for text then lauches a command - I have tried this :
if lynx -dump page1 | grep -q -e "search string"
if lynx -dump page2 | grep -q -e "search string"
then command
fi
i have also tried using elif commands but always seem to get syntax errors: unexpected end of file
can someone help me to understand where i am going wrong ?
thanks in advance...
-- gentoo-user@gentoo.org mailing list
And I think you should add another "then" too :
if lynx -dump page1 | grep -q -e "search string"
then
if lynx -dump page2 | grep -q -e "search string"
then command
fi
fi
Laetitia
-- gentoo-user@gentoo.org mailing list