enthuguy
asked on
how to check md5 on 100s of files on linux
Hi Friends,
Would like to come up with a process to check mdf5 on 100s of files on linux.
1. I have 100+ files (jar, ear, war, xml, etc) with different directory structures
2. Will scp/cp over to a number of remote linux servers.
3. After copying would like to check the md5...just to ensure all good after copy
I was looking at this URL
http://www.techradar.com/au/news/computing/pc/how-to-verify-your-files-in-linux-with-md5-641436
but above eg. was showing only two files.
what is the best approach to check md5 my above 100+ scenario.
please help.
thanks in advance.
Would like to come up with a process to check mdf5 on 100s of files on linux.
1. I have 100+ files (jar, ear, war, xml, etc) with different directory structures
2. Will scp/cp over to a number of remote linux servers.
3. After copying would like to check the md5...just to ensure all good after copy
I was looking at this URL
http://www.techradar.com/au/news/computing/pc/how-to-verify-your-files-in-linux-with-md5-641436
but above eg. was showing only two files.
what is the best approach to check md5 my above 100+ scenario.
please help.
thanks in advance.
ASKER
Thanks for the quick response
I'm thinking get the value before copy and after remote copy then compare. Does it mske sense?
I'm thinking get the value before copy and after remote copy then compare. Does it mske sense?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
CEHJ is correct. Just use rsync. rsync does all the checksums automatically during the copy process. It's not necessary to create your own verification scheme.
ASKER
thx very much
value=`md5sum $a`
#test contents of value to a known reference
done
what are you looking for are you comparing something?
md5sum `list the files`
will return the
md5sum filename
you can then use this list to compare it to the other list you have........
how and where is the current MD5sum reference stored??
shell, perl ...