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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sno2003

    search for a regular expression, then grab another line

    I have a script where I was searching for a regular expression then grabbing the line right above it. |awk '/regexpr/{print x};{x=$0}' My input file has changed and now I need to grab just the 5th line above the regexpr. Any ideas? For reference sake how do I grab the 5th line below...

Part and Inventory Search

Back
Top