procmail
[Top] [All Lists]

OT: sed question

2004-05-10 13:58:52
(Okay, you procmail guys are also the best sed guys I know - sorry of the
off topic question:)


I just found out that piping html email through newers seds (Fedora Core 1)
strips all the html:

| sed -e :a -e 's/<!--[^-]*-->//g;/</N;//ba'

Whikle with RH 7.3, the older sed works properly and doesn't eat up the
html.


Luckily, If found this rule which works on new *and* old version of sed:

# Strips out all HTML comments, sed -f
/<!--/!b
:a
/-->/!{
       N
       ba
}
s/<!--.*-->//


My problem is that I'd rather have it on one line again.  And sed wizards
reading this?

thanks,
-eric wood


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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