I have a string:
172.16.1.5] "80 EE 73 2F 0B 40
I need to replace all the spaces after the
] " with a colon. Currently using
sed -r 's/[ ]+/:/g' I get an output of
172.16.1.5]:"80:EE:73:2F:0B:40:, however I need to keep the first space after the bracket.
How can I replace all the instances of a character, but only after a match using sed?