LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   loop a directory (https://www.linuxquestions.org/questions/debian-26/loop-a-directory-349314/)

bluetwist 08-02-2005 02:30 PM

loop a directory
 
Hi, Guys
I want to write a shell scripting to loop through a directory's files. And do something with files.
I don't know how to do this kind of loop, any idea?

Thanks advance!

jailbait 08-02-2005 02:58 PM

"I don't know how to do this kind of loop, any idea?"

Use the find command. You can set up the find command to drop each filename that it finds into a command.

See:
man find

also these threads might help

http://www.linuxquestions.org/questi...hreadid=331361

http://www.linuxquestions.org/questi...hreadid=301607

--------------------------
Steve Stites


All times are GMT -5. The time now is 11:29 PM.