|
|
|
|
|
by e12e
2167 days ago
|
|
Doesn't appear anyone has tried addressing before replacement - ie the simplest sed work-a-like - if you don't mind the leading ### is just: sed -n '/^### /p'
I believe? (equivalent to grep).Then eg: sed -nr '/^### /s/^.{4}(.*)/\1/p'
(or without the redundant addressing, just:) sed -nr 's/^### (.*)/\1/p'
|
|