Remove duplicate entries from a CSV file

You would need to do something like this:

$ sort -u myfile.csv -o myfile.csv

The options mean:

  • -u – keep only unique lines
  • -o – output to this file instead of stdout

You should view man sort for more information.