I have this line, that is sometimes repeated in the html file, and I want to:
1- get a regex to just find files that has that line duplicate
2- get a regex to search and remove the second instance it come on the file, and leave the first. So it keeps only the first, not the second
Given that the lines are not after each other, they are separated with lots of code and text.
The line is:
<script src="/resources/common.js" type="text/javascript"></script>
or it could have words before or after the line that is needed to be removed, like:
<script src="/resources/common.js" type="text/javascript"></script><div id=something"...
I use Notepad++ to search and replace.

grepandsed, but I see you are using Windows. :(