Skip to content

Instantly share code, notes, and snippets.

@ShawnClake
Created October 9, 2017 02:26
Show Gist options
  • Save ShawnClake/16ff3be0115d47ea1d2cb835156161a0 to your computer and use it in GitHub Desktop.
Save ShawnClake/16ff3be0115d47ea1d2cb835156161a0 to your computer and use it in GitHub Desktop.
Counting lines for the Rubicon repositories
echo "========="
echo "RRPG Core"
echo "========="
cd rrpg-core
git ls-files | grep "\.java$" | xargs wc -l
cd ../
echo "===RRPG Core==="
echo ""
echo "=============="
echo "RRPG Economics"
echo "=============="
cd rrpg-economics
git ls-files | grep "\.java$" | xargs wc -l
cd ../
echo "===RRPG Economics==="
echo ""
echo "==========="
echo "RRPG Social"
echo "==========="
cd rrpg-social
git ls-files | grep "\.java$" | xargs wc -l
cd ../
echo "===RRPG Social==="
echo ""
echo "=========="
echo "RRPG Items"
echo "=========="
cd rrpg-items
git ls-files | grep "\.java$" | xargs wc -l
cd ../
echo "===RRPG Items==="
echo ""
echo "=========="
echo "RRPG Skills"
echo "=========="
cd rrpg-skills
git ls-files | grep "\.java$" | xargs wc -l
cd ../
echo "===RRPG Skills==="
echo ""
echo "=========="
echo "RRPG Total"
echo "=========="
find . -name '*.java' | xargs wc -l
echo "===RRPG Total==="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment