printing - awk: print columns based on values of another column -
i have file 6 columns, , want print first 2 columns of lines have value >3 in sixth column.
this statement prints lines sixth column > 3
awk '$6 > 3' file > out this statement prints first 2 columns:
awk '{print $1,$2}' file > out anyone knows how combine these 2 commands one-liner?
you there,just said, "combine them"! . try this:
awk '$6>3{print $1,$2}' file >out
Comments
Post a Comment