On Wed, Jun 27, 2007 at 02:37:07PM +0200, Pieter Verberne wrote: > How do I rename multiple files at once? I want to rename a list of > files like: > > file.jpg > file1.jpg > file_2.jpg > > to: > > file_thumb.jpg > file1_thumb.jpg > file_2_thumb.jpg
given that no funny filenames (with space, quotes etc.) are around, and that i'm not mistyping the following line: ls *.jpg | sed '[EMAIL PROTECTED](.*\)[EMAIL PROTECTED] & \1_thumb.jpg@' | sh