I would like to capture and replace with sed the following pattern :
{{/tagName}}} to {{/tagName}} }
But I cannot figure it out
I have tried
sed 's/({{\/.*}})/\1 }/g'
But it does not work. It does not capture and the blank space does not work in the 2nd part. Any idea? Thanks
UPDATE : To be more concise, the question is If I have to replace this pattern in a file with the option -i, how should I do ?
sed -i 's/({{\/.*}})/\1 }/g' ./temp.txt