in reply to Sorting an array of hashes and filenames
It looks like what you're trying to do is compare files based on their MD5s -- I do that once in a while, and I just use a Linux command line for that:
find $dir -type f | grep -v svn | xargs md5sum | sort
The part about ignoring 'svn' files is so that the Subversion files don't get included. And if you've got ack installed, even better:
since it ignores Subversion files automatically.ack -f $dir | xargs md5sum | sort
There's no point in building a Perl script to do something that shell's much better at doing, unless this is part of a larger program. But that's just my guess, based on the incomplete information available to me. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting an array of hashes and filenames
by learningperl01 (Beadle) on Jan 14, 2009 at 23:29 UTC | |
by talexb (Chancellor) on Jan 15, 2009 at 03:44 UTC | |
by learningperl01 (Beadle) on Jan 15, 2009 at 16:32 UTC | |
by talexb (Chancellor) on Jan 15, 2009 at 19:37 UTC | |
by learningperl01 (Beadle) on Jan 15, 2009 at 19:58 UTC |