Mal Herring wrote:
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...

Can this be done ?

You may wish to use the wget command line utility in combination with grep in order to achieve this:


  wget http://server.org/page.html | grep "my text" page.html

The actual script will probably need to be a bit smarter.

--
        -Mike Melanson

--
[email protected] mailing list



Reply via email to