I have to replace a string present between two strings using sed
command in Unix.
My Input is :
Apple'Mangoabcd'Orange'Mangoxyz'Lemon'
The command I used is
sed 's/Mango.*'"'"'/+XXXX'"'"'/'
My desired Output is
Apple'XXXX'Orange'XXXX'Lemon'
The output I get is
Apple'XXXX'
I want to replace 'Mango+freetext'
with 'XXXX'
in all the places.