desed
desed copied to clipboard
show only a part of some sed script
for example:
$ cat kniha.sed
/^[1-9][1-9]*\.[^1-9]/a\
===========\
/^[1-9][1-9]*\.*[1-9]/a\
-----------------
$ cat kniha.txt
1. Kapitola
Pomoci teto kapitoly je ukazano,
jak funguji funkce 1, i, c, d a m.
1.1 Podkapitola 1
Nadpisy jsou rozpoznany podle
cisel na zacatku radku.
2. Konec
Doufejme, ze tyto priklady
zdurazni funkcnost funkci
a, i, c, d a n.
and now try to execute: desed kniha.sed kniha.txt
and only the 1st part of the sed script is shown
Thank you for this report! While your case is fixed by 5161e31, this issue goes deeper. It looks like I don't handle sed commands with newlines very well. I'll rewrite the whole parser, which should finally fix #3 as well.
I'll publish new version when I rewrite the parser. It should take few days.