cat a number like ^[D0123-2122352^]

Gert Doering (gert@greenie.muc.de)
Fri, 21 Jan 2000 09:52:03 +0100


Hi,

On Fri, Jan 21, 2000 at 09:03:53AM +0100, R.Slagter wrote:
> I have a postscript file and in the middle of that document stands a
> faxnumber
> like ^[D0123-2122352^]
> I want use that faxnumber to fax the PS file
> but how pull out that number
> and then unused the caracters like ^[D0 and ^]   , only the faxnumber
> stands.

Look at the way the sample scripts for faxing from windows do that, and
adapt them for your need (awk, sed, or perl are the tools of choice for
that).

gert 

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de