Sunday, March 16, 2014

Generate MD5 Sum of Multiple Files

If you want to get the MD5 sum of multiple files at once, following command can be used. This could be useful when you want to compare two set of directories/products to see the difference between them.

i.e.  You can create jarsums1.txt, jarsums2.txt and check the difference using diff command.
find . -iname "*.jar" | sort | xargs md5sum > jarsums.txt

No comments:

Post a Comment