awk + print the second field in line only if the four field is 0
- by yael
How to print $2 by awk only if the four field is 0 (zero)
line="root 13246 11314 457 15: qsRw -m1"
then awk will print 13246
but if
line="root 13246 11314 0 15: qsRw -m1"
then awk will not print anything
THX
Yael