LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I perform a command on all files + subdirectories (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-perform-a-command-on-all-files-subdirectories-527467/)

robertbrownell 02-10-2007 11:18 PM

How do I perform a command on all files + subdirectories
 
Simple Question:
I need to get a MD5Sum on all the files in the current directory and subdirectories down from here, and spit that to a file.

MD5Sum * > myfile.txt
only does the current directory, but nothing lower.

Can somebody email me the answer to robertbrownell at yahoo dot com

matthewg42 02-10-2007 11:23 PM

Code:

find . -type f -print0 |xargs -0 md5sum > myfile.txt

robertbrownell 02-11-2007 08:33 PM

Great Job Matthew, you answered quickly and professionally!
 
I figured it out, I was trying to get all the files verified on my webserver www.DivineRevelations.info. Thanks.

Robert Brownell


All times are GMT -5. The time now is 01:40 PM.