procmail
[Top] [All Lists]

Problems eleminationg \ in a string

2010-12-20 13:41:59
Hello,

in recipe I have

----[ '~/.tdtoops-procmail/BUSINESS_firms_microchip' ]------------------
<snip>
      TMPVAR7a=`formail -czx 'From:' |sed -e 
's|<rssfeed4michelle(_at_)(_dot_)*||' ; :`
      TMPVAR7a=`echo "${TMPVAR7a}" |tr '\t' ' ' |tr -s ' ' ; :`
      TMPVAR7a=`echo "${TMPVAR7a}" |sed -e 's| $||g' -e 's|^ ||g' ; :`
      TMPVAR7a=`echo "${TMPVAR7a}" |tr -d "'" |tr -d '"' ; :`
VERBOSE=on
      TMPVAR7a=`echo "${TMPVAR7a}" |tr -d '\\' ; :`
VERBOSE=off
      TMPVAR7b=`echo "${TMPVAR7a}" |tr ' ' '_' ; :`
      TMPVAR7b=`echo "${TMPVAR7b}" |sed -e 's|[()\\/."]|_|g' |tr -s '_' |sed -e 
's|_$||g' ; :`
      :0
      * ? test "${TDTP_SHOW_RECIPES}" = "true"
      { LOG="${TMPVAR7b}${NL}" }
<snip>
------------------------------------------------------------------------

and the offending line is between the VERBOSE.

----[ '~/log/procmail/2010-12-20.log' ]---------------------------------
procmail: [16425] Mon Dec 20 20:32:28 2010
procmail: Executing "echo "${TMPVAR7a}" |tr -d '\' ; :"
tr: warning: an unescaped backslash at end of string is not portable
procmail: [16425] Mon Dec 20 20:32:28 2010
procmail: Assigning "TMPVAR7a=Graphics and LCD"
procmail: Assigning "VERBOSE=off"
------------------------------------------------------------------------


Question:   HOW TO ELIMINATE the \ in a string?

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems(_at_)tdnet France EURL       itsystems(_at_)tdnet UG (limited 
liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>