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 -->
  #2 (permalink)  
Old 05-26-2007
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,122
Quote:
Originally Posted by guiguy
I have a file that I need to grab certain pieces of information and save it as a file

I need to search data 0001 in position 14 and then for data 620 in position 67. Once the data is located in pos 67 then I need to grab the data starting 5 lines before and the last row of data will be 5 lines after data in pos 67 changes.

I understand this is a little complex and any assistnace would be greatly apprecaited.

Sincerely
a sample input and a desired output would be helpful.....