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

    Printing lines with same value of a certain field

    Thank you very much.
  2. zbabic

    Printing lines with same value of a certain field

    Well, for the record, I'm new to awk so lpease be patient with me. :) I sorted lines, but when I want to get rid of the lines for which 3rd field is unique, by comparing to the previous line, I don't get that previous line printed. sort -k3,3 file.txt | awk 'BEGIN {prev=$3} ($3==prev) {print...
  3. zbabic

    Printing lines with same value of a certain field

    Hello to everyone. I need a help with this one. I have a multicolumn file and I want to get a new file which contains only those lines that have the same value of a certain field (say 3rd) - all of them. For example, I want this: 1 2 3 p w 3 5 l q 9...

Part and Inventory Search

Back
Top