I have quite a few html files where I need to comment out a specific line of JavaScript:
<script src="/common/javascript/jquery/jquery.tools-1.2.4.min.js" type="text/javascript"></script>
What I would like to do via command line, is search .htm files in the directory for the string: “/common/javascript/jquery/jquery.tools-1.2.4.min.js” and add <!-- to the beginning of the respective line containing the string, and
--> to the end of the line.
Some files include type= and some do not, which is why I’d like to search using the src value and add to the beginning and end of line.
Thanks for the help. I appreciate it.
Is this what you want?