[tex-k] MULTIPLE FILES

Heiko Oberdiek heiko.oberdiek at googlemail.com
Thu Feb 28 14:42:46 CET 2013


On 28.02.2013 13:42, Enrico Martoglio wrote:
> Got a problem with epstopdf...
> It only works with a single file, but if I'd have ie 4 or 5 eps files in
> a folder, what can I do to process'em at once?
> The sintax epstopdf ./*.eps doesn't work.

There are many ways for doing it on the command line, e.g.:

A simple for loop:

   $ for file in *.eps; do epstopdf $file; done

Also xargs can be used:

   $ ls *.eps | xargs -n 1 epstopdf

Or, if the files contains spaces:

   $ find . -maxdepth 1 -name \*.eps -print0 | xargs -0 -n 1 epstopdf

(all examples for linux shell/bash).

Yours sincerely
   Heiko Oberdiek


More information about the tex-k mailing list