Linux下利用find和perl正则替换文件内容
时间:2023-06-18 05:04:02 点击:390

  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- 600435.cn All Rights Reserved!

苏ICP备17061231号| 免责声明