Issue
I would like to put one word in parenthesis with sed and a regex but I don't know how to do it.
I think the command shoud look a little bit like this :
sed -r "s/???/\(&\)/g"
but I don't know know how to match a word without whitespaces...
If I try on this example :
WORD
abc = WORD
I get :
(WORD)
(abc = WORD)
What I want is :
(WORD)
abc = (WORD)
Solution
I found what I was looking for :
sed -r "s/WORD/\(&\)/g"
It was quite simple actually.
Answered By - Autechre Answer Checked By - Clifford M. (WPSolving Volunteer)