Is there a way to do a JavaScript code find and replace using a batch file. Here is an Example:
Find: <script type="text/javascript" src="http://www.mega.edu/Course/WebCTfooter/footer.js">Footer</script>
Replace: <script type="text/javascript" src="http://www.mega.edu/Course/WebCTfooter/footer_ungrad.js">Footer</script>
Any help would be greatly appreciated.
Since you can use python, I recommend using a python program instead of a batch file, perhaps something like this:
Tested with python 2.4.