My digital playground

Check MD5 sums for all files in folder with one command

Filed under: Uncategorized — Andre @ 15:01 September 6th, 2009

I came over a simple but genius one-liner for the Linux shell to check the MD5 sum of all files in a folder. It will create a file.md5 containing the checksum just like on the FTP servers.

for c in ./*; do md5sum $c > $c.md5; done

and to list all files with the checksum just use

cat *.md5
Share and Enjoy:
  • Slashdot
  • Digg
  • del.icio.us
  • Facebook
  • Sphinn
  • Mixx
  • Technorati
  • Google Bookmarks
  • Twitthis
  • StumbleUpon
  • MSN Reporter
  • LinkedIn

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment