Current text
Variable length text = some string(some more text
Change to
Variable length text = some string(addition some more text
Need to add a certain text after first parenthesis in a line only after “=” character is encountered. Another condition is to ignore patterns like “= (“, which essentially means you should ignore patterns with only space between “=” and “(“
My Try:
sed -e "s#*=(\w\()#\1(addition#g"
Thanks in anticipation!
Tweak this for your needs:
That matches for:
=any number of times=(any number of times(any number of times(… and substitutes it with the matched string adding
' addition'to it.The output is