[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sed - Problem



Am 2005-09-01 10:03:02, schrieb Sven Gehr:

> also alles perfekt. Nun muß ich die zwei Schritte zu einem
> zusammenfassen und habe folgendes Skript erstellt:
> 
> #!/bin/sh
> PS2ASCII=/usr/bin/ps2ascii
> FAXFILE=/usr/lib/cups/backend/out.ps
> FAXNUM=`($PS2ASCII $FAXFILE)|sed -e 's/^*\@#//' -e 's/\#@.*$//' -e 's/
          ^^^^^^^^^^^^^^^^^^^^

FAXNUM=`$PS2ASCII $FAXFILE |sed -e 's/^*\@#//' -e 's/\#@.*$//' -e 's/
        ^^^^^^^^^^^^^^^^^^^
> //g' -e 's/^+49/0/' -e 's/^+/00/' -e 's/\///g' -e 's/-//g'`
> echo $FAXNUM

> Viele Grüße
> Sven

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: