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

Re: bash/sed script help needed



On Tue, Jul 02, 2002 at 10:36:57PM -0500, 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

for A in *.eps ; do
    T=`echo $A | sed 's/\.eps/.jpg/'`
    convert "$A" "$T"
done


-D

-- 

The light of the righteous shines brightly,
but the lamp of the wicked is snuffed out.
        Proverbs 13:9
 
http://dman.ddts.net/~dman/

Attachment: pgpKDADWNGhuL.pgp
Description: PGP signature


Reply to: