Mailing List Archive


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

Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files



Scott Robbins writes:
 > On Sun, Aug 02, 2009 at 12:15:21PM +0900, Dave M G wrote:

 > > Uniconvertor, however, takes the file extension of the specified output
 > > file to determine the output format, and also expects that you tell it
 > > what to name the new file. So I can't figure out how I would tell it to
 > > make the output file name be the same name as the old file, but in SVG
 > > format, and with a .svg extension.

 > If so, it's pretty simple with some kind of for loop.  Something like
 > for i in *ai;do uniconverter input ${i} output ${i%%ai}svg;done

Without more information on uniconverter and the organization of your
file collection I can't be more elegant, but I can be more general and
correct a typo:

for i in `find <your find arguments here>`; do
  uniconverter input ${i} output ${i%.ai}.svg
done

This will convert all files named *.ai in the scope of the find to a
file in the same directory with the same name.



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links