good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Renaming Directories Recursivelyby blax (Sexton) |
on Jul 22, 2001 at 00:49 UTC ( [id://98696]=perlquestion: print w/replies, xml ) | Need Help?? |
blax has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I am trying to rename every file and directory recursively. Here is my script: I get this error: Can't cd to (dir/) A DIR : No such file or directory for each directory that was at the first level. The directories on the first level get renamed but the rest do not. So find is trying to cd into the directory name before it was renamed. So how do I rename directories recursively? Thanks, blax
Back to
Seekers of Perl Wisdom
|
|