Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
CamJN
· 2mo ago · 0 comments
/\ \ */ is the same as / +/, but if you only want to replace 2+ spaces and leave the single spaces alone, then what you really want is /\ \ +/.
Edit: had to escape the spaces because HN ate my spaces.
Comments
[–]
_flux
2mo ago
You need to use -E to get that behavior with GNU Sed.