【发布时间】:2016-12-21 15:45:34
【问题描述】:
我正在尝试解决我的一些 wordpress 安装中的黑客问题。
这家伙把 9 行代码放在我服务器上多个文件的头部...我正在尝试使用 grep 和 sed 来解决这个问题。
我正在尝试:
grep -r -l "//360cdn.win/c.css" | xargs -0 sed -e '1,9d' < {}
但是什么都没有发生,如果我删除 -0 fromxargs, the result of the files found are clean, but they are not overwriting the origin file with thesed` 结果,有人可以帮我吗?
非常感谢!
【问题讨论】:
标签: linux wordpress bash sed grep