I need to remove a multi-line comment with @author from all java files. These comments are added by the IDE and are in this format:
/ **
*
* @author AuthorName
* /
I used sed and removed the template and the following line using the following command:
find . -name *.java | xargs sed -i '/@author AuthorName/,+1d'
But I don’t know how I can delete a template with the previous two lines and the next line.
gbhat source
share