Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The regexp version does not work for me, too... but the escaped space yes! Can you post the name of the files you are trying to rename? Sorry for the pedantic question, but are you sure to have put another space after the escaped one?
I wrote a little script to re-create some of the jpg filenames that you posted.
Then, either in a script or as a plain command:
Code:
rename 's/ //g' *.jpg
worked for me -- all the spaces in the filenames were removed.
Something else might be wrong here. Were you in the directory containing the files? Are you sure that the spaces are spaces? Can you rename any file in that directory? ... cheers, makyo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.