CodingLittle script-me-do

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  ANT_THOMAS  
 To:  ALL
38191.1 

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?

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  ANT_THOMAS     
38191.2 In reply to 38191.1 
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.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Peter (BOUGHTONP)     
38191.3 In reply to 38191.2 

Aha, curl and grep.

 

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

0/0
 Reply   Quote More 

Reply to All    
 

1–3

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats