q. I've just downloaded the latest HVSC archive. I want to file the songs under my usual mixed audio collection that is sorted in artist-name/title format but I don't wish to disrupt the HVSC directory structure. I think creating symlinks from the C64Music/letter/lastname_firstname directories to audio/lastname, firstname might do it. However this, as you appreciate, would be a massive headache to do manually. So how could I automate it? With a script I assume, but what should I put in it? I'm a bloody stump with scripts.


a. ???

Labels: ,

0 Comments  

q. I want to rename a dir of mp3s to add a 1 to the start of each filename. What's the best/easiest way to go about it?


a. Either of the following solutions should do it:


ls *.mp3 | (while read; do mv "$REPLY" "1${REPLY}"; done) (ta: petemc)


rename 's/(.*)/1$1/' * (ta: dw)

Labels: ,

0 Comments