I tried the following but not adding '' this example
I want to replace FILENAME_LOGIN to 'login.php'
Tried this:
grep -r "login.php" -l | tr '\n' ' ' | xargs sed -i 's/"login.php"/'login.php'/g' However, it gives me login.php not 'login.php'
Thanks
xargs sed -i 's/"login.php"/\'login.php\'/g'- or double-escape:xargs sed -i 's/"login.php"/\\'login.php\\'/g'