Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to convert all ps file to pdf?

Status
Not open for further replies.

surreyian

Member level 3
Joined
Feb 10, 2006
Messages
63
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,796
hello,

while converting ps file to pdf i use ps2pdf <filename>.ps and convert file by file.
now i have generate over 100 .ps files. I know if i want to remove all ps files, I can use rm *.ps
Is there any ways (if available) that i can convert all the .ps files to .pdf files?
I tried ps2pdf *.ps but it doesnt work.

thanks in advance.
 

DugalMc

Newbie level 5
Joined
Mar 15, 2006
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,344
using sh
%sh
for in *.ps do
ps2pdf $i
done
rm -f *.ps
exit
%

or more elegant using find
%find . -name *.ps -exec ps2pdf '{}' \;
 

jemmy

Junior Member level 1
Joined
Jun 7, 2003
Messages
18
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,283
Activity points
182
Another way use Cshell command :

########################
#! /bin/csh -f

foreach cell (`cat lists`)
ps2pdf $cell
end
########################


File "lists" is the list of all ps files which can be created by unix command "ls *.ps >lists".
 

Hughes

Advanced Member level 3
Joined
Jun 10, 2003
Messages
717
Helped
113
Reputation
226
Reaction score
25
Trophy points
1,298
Activity points
5,986
Yet another way:
ls *.ps | xargs -n1 ps2pdf
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top