4 ms·
/\ \ */ 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 es
by CamJN 14d ago
/\ \ */ 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.
- _flux 14d agoYou need to use -E to get that behavior with GNU Sed.