Tag Info

Hot answers tagged


As long as you're interested in the last column, you can do it with sort and uniq: $ sort -k3n test.txt | uniq -f2 -D 1+1 = 2 2x1 = 2 BLABLABLA = 2 Here, the sort option -k3n causes the file to be sorted starting with the third field, in numeric order; the options to uniq are: -f2 Skip the first two fields before checking for uniqueness -D Print ...

Only top voted, non community-wiki answers of a minimum length are eligible