Please consider the following example:
Two columns data:
ti piace o no la apple p181026 07348
ti piace o no la apple p181026 07349
ti piace o no la apple p181026 07345
where the p[0-9]\s[0-9]
sequence is tab separated from the first column.
I would like to remove duplicates according only to the first column (alphabetic part of the line). I tried with:
sort -u -t$'\t' -k1 -nr inputfile > out
and with
sort -t$'\t' -k1 -nr inputfile | uniq > out
with no success. I am afraid I am missing something abvious, but even by consulting other relevant questions on the matter I am still not able to figure it out.
Thanks in advance for sharing your experience with me.