I have a bunch of java files from which I want to remove javadoc lines with license [change it to my code].
The pattern I'm looking for is
^\* \* ProjectName .* USA\.$
but matches the lines
Is there a way that sed [or the commonly used editor on Windows / Linux] can search / replace for a multi-line pattern?
source
share