LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-10-2007, 11:18 PM   #1
robertbrownell
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
Question 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

Last edited by robertbrownell; 02-10-2007 at 11:20 PM.
 
Old 02-10-2007, 11:23 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Code:
find . -type f -print0 |xargs -0 md5sum > myfile.txt
 
Old 02-11-2007, 08:33 PM   #3
robertbrownell
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't perform root command by using Sudo acbenny Linux - General 6 05-07-2008 08:19 PM
Perform an operation on files x, y...direct output to x.out, y.out respectively johndoe0028 Linux - General 6 04-02-2006 10:39 PM
How to perform atomic copy of file through cp command..... rajsun Programming 1 12-07-2005 05:54 AM
How to perform an action (a command) on multiple files with the FOR loop? chun-mee Programming 4 08-23-2005 03:11 AM
i am getting command not found error when i am trying to perform commands in linux? sunilmuddu Linux - Newbie 7 03-24-2004 12:18 AM


All times are GMT -5. The time now is 03:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration