On 24/11/11 16:44, Mark Rogers wrote:
On 24/11/11 16:18, Chris Walker wrote:
Fallen at the second hurdle!
Third, or fourth now?
Note I originally said: rename -n "s/.jpg..*$/.jpg/" * which should have been rename -n "s/.jpg..*$/.jpg/" * where the first matched any character which was followed by jpg, where the latter only matches a dot followed by jpg. Again, it's all about trying to make it avoid false positives.
This is still failing with this message :- mv: cannot stat `(3439)/test.jpg;1': No such file or directory
I *think* it's because there are spaces in the directory names. I've been searching all morning for ways round that but without success so far.
Any help appreciated.