qse/regress/sed/s001.sed

15 lines
114 B
Sed

# require -n
h
:again n
/^-+$/ {
g
N
s/\n/ /
p
b skip
}
x
p
b again
:skip