sed -i s/oldstr/newstr/g
I want to replace all old string with new string in a directory. When I executed this command, It shows all strings are changed to new string on console. But when I entered into file and checked, Old string still remains same. Please help to figure the issue