I would like to use grep and and sed to replace string to something else .
When i use grep, there are 97 result :
root@svr51 [/home/xxx/public_html/akaunting]# grep -lir "ini_set" ./* | wc -l
I would like to replace "ini_set" found in those file to "//ini_set" , to comment/disabled that line.
Anybody can help to construct full grep and sed command ?
Please let me know also the location where i should run that command to avoid it to replace file in wrong location.