procmail
[Top] [All Lists]

Problems With sed/awk script

1997-07-20 22:17:00
The sed/awk recipe below is excerpted from one that automatically updates 
procmail filters from JD Falks list of cyberpromo/nancynet/llv domains. 
For some reason, it inserts a ^M carriage return before the \> and I 
can't figure out how it's getting there. Any ideas?


    lynx -dump -source ${url} \
       | sed -e 's%\.%\\.%g'\
             -e '/^[    ]*$/d'\
             -e 's%^%\\<%' -e 's%$%\\>%g'\
       | awk '{printf(":0 Hf\n* ^(Received|From|To|cc|Sender): .*%s\n| formail 
-b -f -A \"$trash_header siteban per-jdfalk-'${dom}'\"\n\n",$1)}' \
       > ${tmp_new}


This is what I end up with:

:0 Hf
* ^(Received|From|To|cc|Sender): .*\<2020nuvision\.com
\>
| formail -b -f -A "$trash_header siteban per-jdfalk-nancynet"


Regards,

Dave/Webmaster

           Join www.cauce.org | Join Joke-L
  Hit SPAMMERS Where It Hurts | Listserv <listserv(_at_)ddave(_dot_)com>
````````````````` Confirmed kills and counting...
"God grant me the serenity to accept the things I cannot change, 
the courage to change the things I can, and the wisdom to hide 
the bodies of the SPAMMERS that I had to kill."

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