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

0

You must log in to answer this question.

Browse other questions tagged .