Bash Script to List Directory Contents and Associated MD5sum
$15-20 USD
Completed
Posted over 14 years ago
$15-20 USD
Paid on delivery
I need a bash script that will run the md5sum command on every file in a directory and print out the full file path and the corresponding md5sum.
I would prefer this is done in a bash script, since I may have to modify it.
I think this would be pretty straight forward for a bash person, unfortunately I'm not that fluent in it and it would probably take me a couple of hours. You probably could do in a fraction of that time.
I need ASAP.
Thanks.
## Deliverables
I need a bash script that will run the md5sum command on every file in a directory and print out the full file path and the corresponding md5sum.
I would prefer this is done in a bash script, since I may have to modify it.
So for example I have a directory called dir with three sub directories (sub1, sub2, sub3) and in each of those directories there are two files.
I want a script I can edit, put in the top level directory, run it and have the output go to a file that would look something like this for the example I mentioned above.
/dir/sub1/sub1_file1 694a586ba4fb7cb441d2a204a401f6bf
/dir/sub1/sub1_file2 937ddae6549ad586ebe33bd6e9a39129
/dir/sub2/sub2_file1 6fddff90a31ff45db64dce1c5c883f66
/dir/sub2/sub2_file2 c4e9dfd51f0084248a3c76c7d8a48225
/dir/sub3/sub3_file1 you get the idea
/dir/sub3/sub3_file2 you get the idea