recursively remove javascript from all folder index files

Hi All,

A site I manage had some javascript inserted into each folders index file. Can anyone priovide me with some ideas on how to use awk, sed or some other bash script to parse through each of the site folders and remove this code? If I have to do it by hand I'm going to go insane. :eek:

Thanks,

Luke

You should post an example of the Java Script entries that you want to remove. Or you want to remove any Java Script present in all index.htm[l] ... .whatever files?

Thanks! Thats a good point.

The javascript is some which has been inserted by a bot and so the middle of the script varies a bit. However, it always starts with:

<script>wvan=

And ends with:

eval(rpnsxy[0]);</script>

Thanks very much,
Luke