From: Donncha O Caoimh (donncha.ocaoimh at domain tradesignals.com)
Date: Fri 20 Sep 2002 - 16:35:03 IST
Don't bother trying to write a shell script recursively. It gets to about the
5th level before bombing out (I wrote a script to convert netscape -> kmail
folders..) and found a website that explained the above, after I was
wondering why my script kept failing!
Donncha.
On Friday 20 September 2002 16:31, Stephen Shirley wrote:
> On Fri, Sep 20, 2002 at 04:22:15PM +0100, John Allman wrote:
> > Hi - i dont know if there's a program to do this all ready - i strongly
> > suspect there is (if not i might just write one). I want to call a
> > program recursively in each directory under a particular directory. I
> > have a little script to do things to every file in a directory. I want
> > to call it in every directory inside that directory, and every directory
> > in that and so on, recursively.
>
> How about:
>
> find /path/to/base -type d -exec /path/to/script \;
>
> (not tested)
>
> Steve
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:59 GMT