| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
* Dan Goldman <[email protected]> [2016-01-20 00:28]:
> $q means "quit if last line of file".
ah! :)
> Here is a similar, simpler way that I think
> works, even as a somewhat long one-liner:
> /^-----*$/ {N; /Posted by:/ {N; /------$/ d } }
yay! :)
a one-liner right there. no need to change
to another tool or scripting. happy again. :)
thank you all for contributing!
so my sed script changes+deletes text -
and i got many text colouring for mutt,
and also colouring for text in vim
as well as many commands to fix stuff.
now on to finally adjusting some things
to asciidoc or markdown or pandoc - and
finally put it all together in a book
which is small and yet readable on phones.
stay tuned! :)
Sven