Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-11-2007, 12:18 AM   #1
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-11-2007 at 12:20 AM.
Old 02-11-2007, 12:23 AM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
find . -type f -print0 |xargs -0 md5sum > myfile.txt
Old 02-11-2007, 09:33 PM   #3
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 Thanks.

Robert Brownell


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 09:19 PM
Perform an operation on files x, output to x.out, y.out respectively johndoe0028 Linux - General 6 04-02-2006 11:39 PM
How to perform atomic copy of file through cp command..... rajsun Programming 1 12-07-2005 06:54 AM
How to perform an action (a command) on multiple files with the FOR loop? chun-mee Programming 4 08-23-2005 04: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 01:18 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:38 AM.

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