Hi gurus,
I am struggling with a small sed command and thought I could use some of your expertise. I need to replace
the very first occurance of start and end brace with say for ex: XYZ. I have given example below. Appreciate your inputs.
Thanks
Carl
Input:
string (replace) after and after ( dont replace ) ; ( dont )
string (replace) after ( ) ; ( asdf )
string (replace) after and after ( dont replace ) ; ( not to be replaced )
******************************************************
Output:
string (XYZ) after ( stuff ) ; ( asdf )
decimal (XYZ) after ( ) ; ( asdf )
string (XYZ) and after ( stuff ) ; ( )
I am struggling with a small sed command and thought I could use some of your expertise. I need to replace
the very first occurance of start and end brace with say for ex: XYZ. I have given example below. Appreciate your inputs.
Thanks
Carl
Input:
string (replace) after and after ( dont replace ) ; ( dont )
string (replace) after ( ) ; ( asdf )
string (replace) after and after ( dont replace ) ; ( not to be replaced )
******************************************************
Output:
string (XYZ) after ( stuff ) ; ( asdf )
decimal (XYZ) after ( ) ; ( asdf )
string (XYZ) and after ( stuff ) ; ( )