I would like to create a md5 checksum list for all files in a directory.
I want to cat filename | md5sum > ouptput.txt
. I want to do this in 1 step for all files in my directory.
Any assistance would be great.
command line
I would like to create a md5 checksum list for all files in a directory.
I want to cat filename | md5sum > ouptput.txt
. I want to do this in 1 step for all files in my directory.
Any assistance would be great.
Best Answer
You can pass
md5sum
multiple filenames or bash expansions:If you want to get fancy you can use things like
find
to drill down and filter the files, as well as working recursively: