I have a file with six columns, and I only want to print the first two columns of the lines that have a value >3 in the sixth column.
This statement prints all lines where the sixth column > 3
awk '$6 > 3' file > out
This statement prints the first two columns:
awk '{print $1,$2}' file > out
Anyone knows how to combine these two commands into a one-liner?