Linux下利用find和perl正则替换文件内容
时间:2023-12-27 05:55:14 点击:389

  find -name 'xixi.php' |xargs perl -pi -e 's|hello|aa|g'

  find -name '*.html' |xargs perl -pi -e 's|aa|hello|g'

  find -name '*.html' |xargs perl -pi -e 's|<script src=“a.js([^>]*)></script>||g'

  Linux 当大批文件被挂马时(挂js文件),用此方法替换。

最新游戏更多

最新软件更多

  • 玩家推荐
  • 游戏攻略

德才手游网 Copyright(C) 2008-2025 lengguim.com All Rights Reserved!

皖ICP备2023018221号-2| 免责声明