sed 's/^##\([ #]\)/#\1/' ...
This doesn’t work well if you have code blocks with comments like ##
because those would be replaced as well.
sed 's/^##\([ #]\)/#\1/' ...
This doesn’t work well if you have code blocks with comments like ##
because those would be replaced as well.