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. rafquery

    how to compare two fields in different lines with awk?

    Hi again! many thanks PHV !!! it worked really well!! it is so beautiful to get what you want with a simple line! Can you just tell me if I understand well what you did : - "x[$3]=$0" : you created a dictionary in which you associated the number in column 3 with the full line in which you...
  2. rafquery

    how to compare two fields in different lines with awk?

    Hi, I would like to know if it is possible to compare two fields that are in different lines? I have a file that looks like this: a b 145 c d e f 102 g h i j 247 k l m n 102 o p and I would like to get for example here the two lines that contains "102" in $4. I first sorted out the file...

Part and Inventory Search

Back
Top