I did a word replace with “sed” via Putty and i see that the word was replaced but when I open the file in cpanel there is no change to the file.
Here’s the command
sed 's/word1/word2/g' file.php
Why would this happen?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
prints out the changed version of the file. If you want to modify the file in-place, use the
-ioption: