HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] Finding and removing strings from Faxfile




Hi again

If i want to use this row in a bash script what do i do with the < > signs.

I tried this
SendFaxTo=`perl -ne 'print $1 if (m|<SendTo>(.*?)<SendTo>|);' ${FAXFILE} `

But if i echo this line to a file i se that in the bash script the <SendTo>
is removed.
What do i do wrong.

/Jonny Axelsson



                                                                                                                                          
                      Giulio Orsero                                                                                                       
                      <giulioo@pobox.com>           To:      hylafax-users@hylafax.org                                                    
                      Sent by:                      cc:                                                                                   
                      hylafax-users-bounce@         Subject: Re: [hylafax-users] Finding and removing strings from Faxfile                
                      hylafax.org                                                                                                         
                                                                                                                                          
                                                                                                                                          
                      2002-10-15 08:47                                                                                                    
                                                                                                                                          
                                                                                                                                          




On Mon, 14 Oct 2002 22:12:40 +0200, jonny.axelsson@systeam.se wrote:

>Do you have a good way of removing this string from the file
>after the string has been read as well?

perl -pe '$myvar=$2 if (s|(<Z>)(.*?)(<Z>)|$1$3|);END {print "myvar was:
$myvar\n" }' go1

--
giulioo@pobox.com

____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*






____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*




Project hosted by iFAX Solutions