Bernhard Rosenkraenzer wrote:
>
> On Sat, 10 Apr 1999, Ken wrote:
>
> > vacation01.jpg
> > vacation02.jpg
> > vacation03.jpg
> >
> > I want to rename just the vacation part to toronto**.jpg. toronto01.jpg,
> > toronto02.jpg etc...
>
> for i in vacation*jpg; do
> a=`echo $i |sed -e 's/vacation/toronto/'`
> mv $i $a
> done
>
> LLaP
> bero
Aww...you spoiled the fun, Bernhard! ;-)
Nice script though...short and sweet.
I wonder if there's a more general "rename" script or utility...I'm sure someone
would have done one by now.
--
--------------------------------------
Kuraiken - Apprentice Codecaster
--------------------------------------