[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash/sed script help needed



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Lance" == Lance Hoffmeyer <lance@augustmail.com> writes:

    Lance> I have ten files in a directory I am trying to convert from
    Lance> *.eps to *.jpg.  file1.eps file2.eps file3.eps


    Lance> for a in *.eps;do t=`sed 's/*.eps/*.jpg/'`;convert $a
    Lance> $t;done

Just another one (man bash):

for a in *.eps; do convert $a ${a/%eps/jpg}; done


Claudio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>

iD8DBQE9Is9NTpSishmp0ioRAhtsAJ9JJ8ZhhCAI28UL7W7iZVRUFOrdiwCeI5SE
PNe6S1ZWrGfgVr8t3lZCK30=
=UWoG
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: