Re: idl / psutils [message #28062 is a reply to message #27978] |
Thu, 15 November 2001 08:48  |
nobody@nowhere.com (S
Messages: 55 Registered: July 2001
|
Member |
|
|
On Thu, 15 Nov 2001 09:35:59 +0100, Reimar Bauer <r.bauer@fz-juelich.de> wrote:
> Hi,
>
>
> please can someone else do a small test to convert
> an idl ps file with ps2epsi into an eps which was created by IDL5.5.
>
> (psutils 1.7)
>
>> ps2epsi idl.ps idl.eps
>
>
> If I do so I got an error which I don't understand.
>
> sed: -e expression #2, char 15: Extra characters after command
>
Sorry, I can't try it, I'm still waiting for our legal department to comment
on our GIF license before upgrading to IDL 5.5 :^) ! But, ps2epsi is just a
script which calls ghostscript, there is only one line in it that uses sed:
sed -e '/^%%BeginPreview:/,/%%EndPreview$/d' -e '/^%!PS-Adobe/d'\
-e '/^%%[A-Za-z][A-Za-z]*$/d' -e '/^%%[A-Za-z][A-Za-z]*: /d'
It sounds like expression #2 is after the second -e, and maybe your sed
doesn't like the newline ( the \ ), so you could try to put all the
commands in the ps2epsi script on one line?
sed is a stream editing tool, you can see that it's just looking at the
postscript prolouge (think that's what it's called). Unfortunately, sed
commands look so much like postscript commands, I can't guess off hand
what it's actually doing here, so I can't tell you what's happening. Logan
may laud me for tinkering till I figured it out, but it's a small consolation
for enduring disciplinary action for spending too much time on it! Hopefully
there's something here you didn't know already :^), I would just open the
ps file and see what it looks like, and compare with your old ps output
(from prior version of IDL). You could also check the faq at the sed web
site mentioned in the sed man pages.
--
Steve S.
steve@NOSPAMmailaps.org
remove NOSPAM before replying
|
|
|