I'm working on OSX and I have multiple CSV files in a directory. I want to check if any two of them are identical.
cmp file1.csv file2.csv || echo "files are different"
This tells me that the first two files are different.
I've also tried:
diff -q --from-file *.csv
This tells me that the first file is different from every other file.
But how can I check this for every file, without having to do it manually?