thanks RedNovember, i'm afraid i did not installed KDE/GNOME on the server, and server is located in remote location.
|
Quote:
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. |
Code:
for i in `find . -name .folder.jpg`;do mv "$i" "${i/.folder.jpg/folder.jpg}";done |
Quote:
Code:
$newfile=~ s/[,& '\(\)]/_/g; #Search for ',', '&', ' ', "'", '(', ')' in filenames and replace them with underscores. between the '[' and ']' add additional 'illegal' characters in order to get them replaced with underscores. A bit more advanced is to determine if the name consists of 'any' character that is not between a-z,A-Z,0-9,_,-, etc... That could be done instead of the above line perhaps... I'm figuring out how to do so.. in this case you can tell what characters ARE valid, rendering all remaining characters invalid without naming them specifically... |
Quote:
|
All times are GMT -5. The time now is 03:34 AM. |