Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing selected lines of a file

Status
Not open for further replies.

rbeech23

Programmer
Dec 22, 2002
14
GB
Hello
I have a series of files whereby I want to miss out the first set of lines based on a key word
I'm running a korn shell script so can get the start record using grep -n "Value" and set this to a variable ie start_rec
What I'm hoping I can do is use awk NR to parse the file, if NR > start_rec then print
Anyone have the most efficient way of doing this ?
Thanks
Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top