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

Recent content by pnut

  1. pnut

    How to read multiple lines with awk

    I found the answer, in case anyone else has hit the same stumbling block, here it is. <br> This script will print the line in which the string is found and 2 lines after. Variables can be adjusted to print n # of lines. My search was for the first field only, however this can also be adjusted...
  2. pnut

    How to read multiple lines with awk

    I'm new to awk and need some help. <br> <br> When a string is found, using awk, how do you read and display the next 3 lines of the file if the search string is not present?<br> <br> Thanks!!!!

Part and Inventory Search

Back
Top