procmail
[Top] [All Lists]

Re: Malfunction with SED (CONTINUED)

2000-06-14 15:59:40

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

s/some text/&\
/

Did you use your Alt-<numeric_keypad> to get the blank return; if so,
what number did you input?
 
 That should be a literal newline, ie. backslash <return> slash.

Why the ampersand?

 It contains the full expression matched. The sed command replaces
 'some text' with 'some text' plus newline.

Will HTML tags work (e.g. &nbsp;)?
 
 ampersand must be escaped, as it is special in regexps.



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