On Wed, 14 Jun 2000, SoloCDM wrote:
Matt Dunford wrote:
On Wed, 14 Jun 2000, SoloCDM wrote:
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/&\
/
Did you use your Alt-<numeric_keypad> to get the blank return; if so,
what number did you input?
Why the ampersand?
Will HTML tags work (e.g. )?
no, I just typed \<return> -- no special character. I can't get this to
work from the command line though. It works in a file.
The ampersand just adds what you matched:
's/some text/&\n/' and 's/some text/some text\n/' do the same thing.
Sounds like you need to do some major reading up on sed!
to add an html space 's/ /\ /g'
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail