I got a text file with contents like below
2012/03/15 : "Password":"@#4JF9u92r","Name":"John"
I wish to use sed to change the above to
2012/03/15 : "Password":"XXX","Name":"John"
I have tried the following command
cat log.txt | sed 's/\("Password":\"\)\(.*\)\(\",\"Name\":\)/\1XXX/'
But it gives me
2012/03/15 : "Password":"XXX"John"
What did I do wrong?
Thanks!