| Next | ![]() |
26 |
I tried to append together the previous and current lines, like this:
I am a heading\n**************\n
Then something like this:
:loop
s/^\(.\)\(.*\)\n\(.\)\(.*\)\n/\2\n\4\n/
t loop
s/^\n\n//
t equal
s///
t unequal
t is a test; if the last s/// was successful, it branches to the indicated label
labels are introduced by :
I wanted to amaze you with my awesome sed skills
Sorry, I totally couldn't get it to work.
| Next | ![]() |
Next |