I'm running this command to remove repeated lines from a file:
cat arquivo.csv | (read;echo "$REPLY"; sort) | uniq > arquivo.csv
But when I look at the file, it is blank rather than just the lines that do not repeat themselves. What am I doing wrong?