The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-28-2008
meevagh meevagh is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 7
Hi Photon, Thanks for the reply.
But not quite what I am trying to do, I prob could have explained it a bit better.

My problem is that I only want to send out an e-mail if the lines
United
Champions
Ronaldo
occur directly after each other as in.

sample text file

United
Chanmpions
Ronaldo
Liverpool
Losers
Torres


I dont want to send an e-mail just if the words are located in the file for example I dont want to send an e-mail if text file is

United
Champions
Torres
Liverpool
Losers
Ronaldo

as the lines im interested dont occur in the correct order.