Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Renaming Files

by Dragonfly (Priest)
on Aug 23, 2001 at 13:54 UTC ( #107283=note: print w/ replies, xml ) Need Help??


in reply to Renaming Files

Wow, that's a lot of Bruce.

One approach would be to write a script that went into the /music/Springsteen directory, grabbed all the folder names into an array, and then write a foreach that went into the directories one by one and prepended the directory name to the song's filename.

You could also write a regex that would search the song names for the directory name to avoid changing filenames that were already correct.

Sorry I can't write any example code right now, it's almost 5:00 AM here and I think any attempt I would make would be more amusing than helpful right now. ;-)


Comment on Re: Renaming Files
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://107283]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-12-20 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (96 votes), past polls