rename all directories in structure

From: John Dunn (john.dunn@SEFAS.CO.UK)
Date: Tue Oct 01 2002 - 09:03:56 EDT


How can I easily rename ALL the directories in a structure? Is this possible
with a single command?

I would want all ownerships and permissions on all directories and files to
be retained.

e.g. /OLDIR1/OLDDIR2/OLDDIR3

becomes

/NEWDIR1/NEWDIR2/NEWDIR3

the OLDDIRs should no longer exist afterwards

John



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:14 EDT