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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.