So I'm trying to get the first column of comm output using awk
.
I read that Tab was used as a separator for comm so I did:
awk -F"\t" '{print $1}' comm-result.txt
With comm-result.txt containing the output of:
comm -3 file1 file2
But this doesn't seem to work.
This commend takes also the space character as a separator and I get weird results when my files contains multiple spaces.
How can i only get the first column from comm
?