Given a line like this: "hello my (name) is (user)
, how can I remove all '()'
using sed?
What I'm currently doing is highlighting the line using visual block, and then :s/(//g
and again for )
. Is there a way to remove both (, )
in one sed command?
My end goal is "hello my name is user"
(
but no corresponding)
, what should happen? Or what if it has a closing parenthesis before the opening one, like)(
?