我試圖擺脫我的一些wordpress安裝上的黑客問題。需要刪除前N行grep結果文件
這傢伙在我的服務器上的多個文件頭放9行代碼...我試圖用grep和sed來解決這個問題。
我試着:
grep -r -l "//360cdn.win/c.css" | xargs -0 sed -e '1,9d' < {}
但什麼也沒發生,如果我刪除-0 from
xargs的, the result of the files found are clean, but they are not overwriting the origin file with the
sed`結果,任何人都可以幫我嗎?
非常感謝!
非常感謝你!我試圖解決這個過去的4小時! = D –
@RenanCorrêaPinto在[so]上說「thank you」的方式是*接受*(和/或* upvoting *)答案。 –