Jakob Kofoed wrote:
I am trying to create a script which can traverse down a folder
structure to list all files and folders and then rename all files
or folders not called ".dat".
Fx I have top folders called a 5 digit numbers and under here a
number of files and folders (in various depths). I would like to
give every folder or file not called ".dat" a prefix named after
the 5 digit top folder.
I can traverse down the structure and find all files and folders
using File::Find but I cant figure out how to pick up the top
folder name for the renaming of the files/folders below.
Can anybody give me a hint to get on with this?
Show us what you have so far, or else it's difficult to give a "hint"
at that detailed level.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>