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

Re: sed - Problem



Am 2005-08-31 12:55:18, schrieb Sven Gehr:

> Nun wollte ich das Ganze in ein Skript einbauen und habe so meine
> Probleme damit.
> 
> #!/bin/sh
> FAXFILE=/usr/lib/cups/backend/doc155.txt
> FAXNUME=$FAXFILE|sed -e 's/^.*\@#//' -e 's/\#@.*$//' -e 's/ //g' -e
> 's/^+49/0/' -e 's/^+/00/' -e 's/\///g' -e 's/-//g'
> echo $FAXNUM

Probiers mal mit:

FAXNUME=`cat $FAXFILE |sed -e 's/^.*\@#//' -e 's/\#@.*$//' -e 's/ //g' -e 's/^+49/0/' -e 's/^+/00/' -e 's/\///g' -e 's/-//g'`


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: