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

    help with awk "if"

    Yes. There would be only W*. Yes. Search through the file that has W* in $6, then print all lines with the same value in $3 as that line. My script: var1=`cat locks2 | awk '$6 == "W*" {print $3}'` echo $var1 cat locks2 | awk '$3 == var1 {print $0}' Output: 00040101000000000000000054 My...
  2. beowulfkid

    help with awk "if"

    My input is as below: Locks: Address TranHdl Lockname Type Mode Sts Owner Dur HldCnt Att ReleaseFlg 0x07800000208E0340 3 53514C4332453037DF495EFE41 Internal P ..S G 3 1 0 0x0000 0x40000000 0x07800000208DB000 7 53514C4332453037DF495EFE41 Internal P ..S G 7 1 0 0x0000 0x40000000...

Part and Inventory Search

Back
Top