procmail
[Top] [All Lists]

Re: Malfunction with SED (CONTINUED)

2000-06-14 13:42:54


On Wed, 14 Jun 2000, SoloCDM wrote:

Would a semicolon separator work with sed (e.g. s;;;)?

yes, ';'s will work.  I've seen various characters used as delimiters:

s!/usr/home/!/home!g
s#re#replace#
s.1234556.89.g


When combining two lines as one in sed's regexp/condition, is it
possible to combine the lines with a return in between?  I tried the
following types in the regexp/condition to simulate the return:

       [=\n=], [=\r=], \n, \r, \015, .*, [:space:], [:cntrl:],
[:print:], [:blank:]

s/some text/&\n/  won't work

s/some text/&\
/

will work (I think).


What does "[^>]" mean in a sed regexp/condition?

"[^>]*" means zero or more characters which are _not_ '>'.  Usually I put
this in to sift out html tags. Example (to catch a body tag)
"<body[^>]*>".

this will catch
<body>
<body bgcolor=#FFFFFF>
<body marginwidth=0 onLoad='dothis();'>
etc


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