I have a file that looks something like this:
Heading -
- Completed foo
- More information
- Still more
* Need to complete bar
- Did baz (comment blah blah) ***
Another -
* Need to complete foo
- Completed bar (blah comment blah) ***
- Done baz
I need to run the text file through sed
to remove all of the lines that start with spaces (number varies) and a hyphen, and another space.
What is the regex or pattern I need to use with sed
to make the output look like this below?
Heading -
* Need to complete bar
Another -
* Need to complete foo