...
find . -name "*.java" | xargs egrep -v -h "^\s*[//|/*|*/]" | egrep -v "^\s*$" | wc -l
SED for the win!
I never can get maven to do a recursive mvn versions:set
so instead I used find
combined with sed
:
Code Block |
---|
find . -name "pom.xml" -exec sed -i 's/-SNAPSHOT//g' {} \; |