...
back=`pwd`; for d in `find . -type d -name .git`; do cd "$d/.."; pwd; git remote show origin | grep out\ of\ date; cd $back ; done
which can conveniently be accomplished by:
back=`pwd`; for d in `find . -type d -name .git`; do cd "$d/.."; pwd; git co develop; git pull; cd $back ; done
Rudimentary SLOC count (java files only)
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' {} \; |