LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2011, 09:53 AM   #1
ofeyrpf
LQ Newbie
 
Registered: Feb 2010
Posts: 9

Rep: Reputation: 0
Using multiple epstopdf command


Hi,

I've installed epstopdf and can get it to work for one file at a time. But I have about 100 *.eps files which I want to convert to *.pdf using this command. How could I get linux to find all *.eps files in the directory and repeat the command for each converting them to *.pdf?

At the moment the command that works for me is,

$ epstopdf file.eps

And works for one file

Any help would be greatly appreciated.

Thanks,

Shane
 
Old 01-06-2011, 10:02 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,261

Rep: Reputation: 297Reputation: 297Reputation: 297
Hi

This will run epstopdf on all .eps files in current directory and all subdirectories:

Code:
find . -name "*.eps" -exec epstopdf {} \;
 
Old 01-06-2011, 10:17 AM   #3
ofeyrpf
LQ Newbie
 
Registered: Feb 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Hi Guttorm,

Thanks for the reply.

I carefully copied and pasted the command into the command line and get

Quote:
find: missing argument to '-exec'
I wonder what I am doing wrong.

Thanks,

Shane
 
Old 01-06-2011, 10:39 AM   #4
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,261

Rep: Reputation: 297Reputation: 297Reputation: 297
Hi

It works here. From the error message you got, it looks like it's missing the \ before the last ;

You could try this, which is another way of writing the same command:

Code:
find . -name "*.eps" -exec epstopdf {} ";"
 
Old 01-06-2011, 11:11 AM   #5
ofeyrpf
LQ Newbie
 
Registered: Feb 2010
Posts: 9

Original Poster
Rep: Reputation: 0
That commands works, I think.

I just have some issues with an error,

Quote:
==>Warning: boundingBox not found!
But that should probably be another thread.

Thanks for your help,

Shane
 
Old 01-06-2011, 03:03 PM   #6
ofeyrpf
LQ Newbie
 
Registered: Feb 2010
Posts: 9

Original Poster
Rep: Reputation: 0
If anyone else is having problems with the boundingbox converting eps files to pdf this page may be of help

Convert EPS to PDF: problem of bounding box
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sed syntax for binary wrapped eps files gs,epstopdf, illustrator tnrooster Linux - Software 1 10-09-2010 03:34 PM
nagios, same command for multiple hosts muha Linux - Software 2 07-04-2007 08:08 AM
Multiple Command-Line Programs skibud2 Linux - Software 1 03-18-2007 07:17 PM
find command - multiple direcories ygloo Linux - General 3 08-25-2006 05:44 PM
ps command displays multiple processes mghiya Linux - Software 0 07-28-2006 05:28 AM


All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration