Quote:
|
Originally Posted by rhoekstra
You could try it like this:
Code:
for i in `find . -name .folder.jpg`;do mv $i ${i/.folder.jpg/folder.jpg};done
|
This works great when the directory names are one word but doesn't work for most of my directories which are album titles such as:
To Bring You My Love which Linux sees as:
To\ Bring\ You\ My\ Love/
Your script seems to try to go into folder To\ then Bring\ then You\ etc....
Here is an example of the message I get:
mv: cannot stat `./Murray': No such file or directory
mv: cannot stat `Street/.folder.jpg': No such file or directory
mv: cannot stat `./Daydream': No such file or directory
mv: cannot stat `Nation/.folder.jpg': No such file or directory
Thanks so much for your help.