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

    Unix Awk

    awk {if ($2>m) {m=$2;x=$0}} END{print x}' Data.txt it works, tested.
  2. PoxKing

    Unix Awk

    It was not totally really wrong, but needed 'if' awk {if ($2>m) {m=$2;x=$0} END{print x}' Data.txt the previous command didn't work.
  3. PoxKing

    Unix Awk

    Thanks a lot even you did it wrong :P I added if and it worked.
  4. PoxKing

    Unix Awk

    There is a file that contains: MFT 90 FFF 87 SIA 76 SSS 94 This file can be called Data.txt I'd like to know how to use awk to compare the second fields and return the line with the biggest number. Many thanks.

Part and Inventory Search

Back
Top