Re: bash/sed script help needed
On Wed, 2002-07-03 at 00:19, Travis Crump wrote:
>
>
> Lance Hoffmeyer wrote:
> > I have ten files in a directory I am trying to convert from *.eps to *.jpg.
> >
> > file1.eps
> > file2.eps
> > file3.eps
> >
> >
> > for a in *.eps;do t=`sed 's/*.eps/*.jpg/'`;convert $a $t;done
> >
> > But this doesn't rename the file to file1.jpg
> >
> > Why?
> >
> > Lance
> >
>
> apt-get install mmv
> mmv "*.eps" "#1.jpg"
So..... Now you have an EPS file with extention "jpg". That's not
exactly what Travis wanted.
--
+-------------------------------------------------------------+
| Ron Johnson, Jr. Home: ron.l.johnson@cox.net |
| Jefferson, LA USA http://ronandheather.dhs.org:81 |
| |
| "Object-oriented programming is an exceptionally bad idea |
| which could only have originated in California." |
| --Edsger Dijkstra |
+-------------------------------------------------------------+
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: