You don't need a script, you can do that with: rename "EOS-1D Mark III copy" "" *.jpg That removes "EOS-1D Mark III copy" from all files ending in .jpg, assuming they are all in one directory. Thanks, Jarek Sedlacek On Thu, Mar 1, 2012 at 6:13 PM, pete <p.nikolic1@xxxxxxxxxxxxxx> wrote: > Hi folks > > Bit sort of off topic but hopefully ok > > I have some 350 picture files with names along the lines of > "IMG_7127 EOS-1D Mark III copy.jpg" i would like to rename them all > to more like "IMG_7127.jpg" i have tried a few times tonight and cant > get my head around it anyone got a script that can do it > > Thanks Pete . > > > -- > Linux 7-of-9 3.2.8-1-ARCH #1 SMP PREEMPT Mon Feb 27 21:51:46 CET 2012 > x86_64 AMD Phenom(tm) 9600B Quad-Core Processor AuthenticAMD GNU/Linux >