Hylafax Mailing List Archives

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

Re: [hylafax-users] Need to remove text in PS file before sending to



Hi Jonny,

> it works almost perfect but when i run the command in my script it doesn't
> work
> as i would like it to.
> I use this lines
>     ${SED} -e s/SendThisTo:// ${FAXFILE} > ${TEMPFILE1}
>     ${SED} -e s/:SLUT// ${TEMPFILE1} > ${TEMPFILE2}
>     ${SED} -e s/${SENDADDR}// ${TEMPFILE2} > ${FAXFILE2}
> 
> But the last line where i use an variable as criteria for the search won't
> work.

To ALLOW the Unix shell to interpret the dollar sign (replacing it
with an environment variable), put the script in double quotes:
sed "s/_terminal-type_/$TERM/g" input.file >output.file

Taken from the fantastic sef faq under :

http://www.faqs.org/faqs/editor-faq/sed/

Best Regards,



Carsten Breuer

Keiner



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services