[mdlug] Hideous script for recursively renaming a directory tree tolower case

Jeff Hanson jhansonxi at gmail.com
Mon Feb 4 13:18:13 EST 2008


On Feb 4, 2008 10:57 AM, Ingles, Raymond <Raymond.Ingles at compuware.com> wrote:
>  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...

Thanks.  That worked much better.  I must have overlooked the option
in the man page.  The simplified solution which covers both file and
directory names is:
find <dir> -depth -execdir rename 'y/A-Z/a-z/' {} \;



More information about the mdlug mailing list