[mdlug] Hideous script for recursively renaming a directory tree tolower case
Ingles, Raymond
Raymond.Ingles at compuware.com
Mon Feb 4 10:57:34 EST 2008
> From: Jeff Hanson
> The "find" command can exec another command like "rename" but it parses
> the full tree first then runs the app which then fails as soon as it
> tries to access a subdirectory of a directory it just renamed.
I think you can used the "-depth" argument to force it to handle the
directory entries first, then the directories. This would allow you to
rename the files, then the enclosing directory, then the next highest
directory, and so forth...
Sincerely,
Ray Ingles (313) 227-2317
"Improvements succeeded each other so rapidly, that machines
which had never been finished were abandoned in the hands of
their makers, because new improvements had superceded their
utility." - Charles Babbage, 1832
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
More information about the mdlug
mailing list