scripts/text/oldcomments.sed

26 lines
164 B
Sed
Raw Permalink Normal View History

2019-07-05 19:09:01 -07:00
$! {
N
N
s/\/\/-+\|\n//
t m1
b mE
:m1
s/ / MARKER/
h
s/.+MARKER//
s/ /-/g
x
s/MARKER.+//
x
H
x
s/ \n-/ --/
t m2
b mE
:m2
N
N
s/\/\/\n//g
:mE
}