On Sunday 06 February 2005 15:11, Leiaz wrote:
> if lynx -dump page1 | grep -q -e "search string"
> then
> if lynx -dump page2 | grep -q -e "search string"
> then
> command
> fi
> fi

In this case it easier to compine the two commands with the AND statement 
(&&):

if lynx -dump page1 | grep -q -e "search string" && lynx -dump page2 | grep -q 
-e "search string"
then
command
fi

best
Martin


--
[email protected] mailing list

Reply via email to