md5sum for files in the directory

Here is nice one line solution to generate list of md5sums:
ls *.py | while read f;do md5sum $f;done > /tmp/list1.md5sums

Or oneliner for subdirectory tree:
find . -name "*.py" | while read f;do md5sum $f;done

This entry was posted in workday. Bookmark the permalink.

Leave a Reply