开发者

Why would change with "sed" via Putty not reflect in Cpanel?

开发者 https://www.devze.com 2023-04-11 12:08 出处:网络
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 i开发者_如何学Gos no change to the file.

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 i开发者_如何学Gos no change to the file.

Here's the command

sed 's/word1/word2/g' file.php

Why would this happen?


sed 's/word1/word2/g' file.php

prints out the changed version of the file. If you want to modify the file in-place, use the -i option:

sed 's/word1/word2/g' -i file.php
0

精彩评论

暂无评论...
验证码 换一张
取 消