in reply to Comparing unordered but similar data files

monks: gather your stones while I don my armor...

maybe perl isn't the best tool here

$ cat abc a b c d e e e ff fff g $ cat abc2 a fff e g e e b c d ff $ sort abc > sorted_abc $ sort abc2 > sorted_abc2 $ diff -u sorted_abc sorted_abc2 $ rm sorted*

Then edit one of the files and repeat. You'll get a diff. In the above case no diff is shown because the files are the same when sorted.

Replies are listed 'Best First'.
Re^2: Comparing unordered but similar data files
by choroba (Cardinal) on Sep 23, 2010 at 19:49 UTC
    If shell, I'd bash it like this:
    comm -3 <(sort abc) <(sort abc2)