Created
November 14, 2017 14:20
-
-
Save buckett/3f5ce549a78736c693caee089eaaf307 to your computer and use it in GitHub Desktop.
This removes comments before the package declaration (useful for .java files). This was used because some files has 2 license headers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From end for first comment to package declaration | |
/*\//,/^package/ { | |
# Remove anything inside a comment | |
/^\/\*\*/,/*\// { | |
d | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment