Remove duplicate lines from a file without changing the order
awk '!_[$0]++' file.txt
Show only duplicates
awk '_[$0]++' file.txt
show unique by an individual column
awk '!_[$1]++' file.txt
@M_C_Stottarrow-up-right (backup)arrow-up-right
Last updated 5 years ago