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 IamaSherpa 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. indianya

    Search and print a field using pattern

    I have tried the following nawk 'BEGIN { RS=""; FS="\n"; OFS=","}; /pattern1/ {print $1}' datafile This prints date for records that have pattern1. But since pattern1 is in different field I don't know how to check for that. I think a for loop to check all the fields upto NF and then use of if...
  2. indianya

    Search and print a field using pattern

    I have data file with null record separator and end of line as field separator. See below. Date pattern2 pattern3 pattern1 Date pattern1 pattern2 pattern8 Date pattern5 pattern6 pattern2 Date pattern1 pattern2 I am only interested in field with pattern1. The problem is field number for...

Part and Inventory Search

Back
Top