[COLUG] find command

Travis Sidelinger travis at ilive4code.net
Sat Oct 20 21:31:20 EDT 2007


Try either of these:

find /path/to/dirs -type d -exec ./clean-up.sh {} \;
or
for DIR in `find /path/to/dirs`; do ./clean-up.sh $DIR; done;



Rob Robson wrote:
> Help,
>
> I need the syntax for the Linux 'find' command for this issue.
>
> I want to run a script in the working directory and all directories below it.
>     The script alters file names, etc.
>
> So I just want it to run in each directoy and move on.
>
> find    (next directory) (run) clean-up.sh
>
> Any ideas?
>
> Thanks,
>
> Rob
> _______________________________________________
> colug432 mailing list colug432 at colug.net
> http://www.colug.net/mailman/listinfo/colug432
>
>   



More information about the colug432 mailing list