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 -->
  #4 (permalink)  
Old 12-31-2008
foleyml foleyml is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 3
Quote:
Originally Posted by jim mcnamara View Post
Code:
grep "search_text"  search/path/file.11*2008 > outputfile
Does this do what you want?
Jim, the command does output all the search strings from the differents files to the logfile, but i'd still have to format the logfile so that each search string has a header. I need to make the other two lines of code do that for each string.