0

I try find one file that is different on folder. I have 4 files i.e. file1, file2, file3 and file4. File from 1 to 3 have text "not uniq", file 4 is empty. How can i find this different file? I tried with diff, but diff works with 2 files.

3
  • 1
    md5sum * | grep $(md5sum * | awk '{print $1}' | sort | uniq -c | grep " 1 " | awk '{print $2}' | head -1) | awk '{print $2}'
    – tater
    Aug 21, 2020 at 11:30
  • @tetech thanks :) i find simplest solution, i mean 'md5sum * | sort -r | head -n1 | awk '{print $2}'
    – PawelC
    Aug 21, 2020 at 11:39
  • 1
    Cool, sure, it was not a real "answer" just to get you started with ideas.
    – tater
    Aug 21, 2020 at 11:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.