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文件),用此方法替換.
[火星人 ] Linux下利用find和perl正則替換文件內容已經有551次圍觀