Little script-me-do

From: ANT_THOMAS10 Feb 2011 17:34
To: ALL1 of 3

I want to make a small linux bash script.

 

What it needs to do is quite simply check a webpage/address and check if a certain word/term is present. If it is, say Yes, if it isn't say No.

 

I've been Googling and will continue to do so to try and find a way, but any ideas?

From: Peter (BOUGHTONP)10 Feb 2011 17:49
To: ANT_THOMAS 2 of 3
You want something along the lines of:
bash code:
curl <url> | grep <word>

More complex than just that, but I've not got time right now - google "man curl" and "man grep" and hopefully it wont be too confusing what the appropriate options are.
EDITED: 10 Feb 2011 17:51 by BOUGHTONP
From: ANT_THOMAS10 Feb 2011 17:50
To: Peter (BOUGHTONP) 3 of 3

Aha, curl and grep.

 

Right, that's set me along the right path. (I've used grep plenty of time previously).