I am trying to add a colon after a specific sign (e.g -) only on certain occurrences. Here's an example
convert:
-a 123 -b 456 -c 789 -d 333
to:
-a 123 -:b 456 -:c 789 -d 333
I tried s/\-[b,c]/-:/g but the -b and -c were replaced by -: I don't want to replace them, I want to add the colon to them.