F
F
freeowl2017-09-07 17:51:32
bash
freeowl, 2017-09-07 17:51:32

How to use sed to remove spaces in a phrase around (behind) a comma, replace the comma with a slash?

there is text : some text ,
oylala ( white , silver ) _ _ _ _ / silver) Sneakers, oh lala (plum / green) some text oiwei (black / white) some text, highway (grey / pink / white)






Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Demidov, 2017-09-07
@ptitca_zu

sed -ie s/(\s?,\s?)/_/g

V
Viktor Taran, 2017-09-07
@shambler81

\,
or in hex16
here I wrote a detailed one https://klondike-studio.ru/blog/sed-spetssimvoly/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question