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 > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: Help!!
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-17-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Is the search string a single long string over multiple lines which you want to find in exactly that order? grep -f and friends generally read a file of search expressions, one per line.

Are the email messages one per file, or is this a single file containing multiple messages? The .eml extension is not well standardized; it could be either.

If you have one message per file, grep -l searchstring *.eml will list the ones which match, but again, that's assuming the search string is shorter than maximum one line.

You really could take the time to think of a thread topic which would identify this thread among the others; basically, everyone who posts here wants help, some urgently.