On Fri, 04 Sep 2009 23:20:59 +0200, Anders Johansson wrote:
On Friday 04 September 2009 23:16:43 Anders Johansson wrote:
On Friday 04 September 2009 23:04:30 Jim Henderson wrote:
Why not just:
rename jpeg$ jpg *.jpeg
Sure, that will work too.
Actually, no it won't. I just tried it, and I couldn't make it work until I dropped the $. It seems rename doesn't understand regular expressions
Hmmm, I thought it did handle regex expansion properly. Looks like I was wrong on that - using: rename jpeg jpg *.jpeg Would work, though, as long as "jpeg" only appeared as an extension and not as part of the filename. Another option would be: rename .jpeg .jpg *.jpeg As that would be fooled only by a file with a name like this.jpeg.jpeg Jim -- Jim Henderson Please keep on-topic replies on the list so everyone benefits -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org