On Fri, 4 Feb 2005 12:56:02 -0500, Jason Cooper <[EMAIL PROTECTED]> wrote: > Mal Herring ([EMAIL PROTECTED]) scribbled: > > Hi List, > > I would like to write a script that somehow gets a text only output of a > > webpage - can lynx do this ? > > Then grep the output for a desired string of text - then somehow pass > > the result to an if command so that if the string is found - lauch this > > and if not then loop... >
Using lynx, try something like this: if lynx -dump URL | grep -q -e "expression" then whatever else whatever fi -- [email protected] mailing list
