I am trying to replace the string }{
with },{
using awk
and gsub
.
My attempt is:
cat blobs.txt | awk '{gsub(/\\}\\{/,"},{"); print}' >> blobsDone.txt
I have read somewhere that characters like brackets need two backslashes to get matched but is not working. Can someone help me with it? I am getting crazy.