Created
September 27, 2017 16:40
-
-
Save subwiz/0e3863c3a8c5721cc56f6968c514914e to your computer and use it in GitHub Desktop.
LOC of Go packages
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
#!/bin/bash | |
# Install: https://github.com/warmans/golocc | |
for f in $(ls) | |
do | |
if [ -d "$f" ]; then | |
cd $f | |
golocc --no-vendor ./... | |
cd .. | |
fi | |
done |
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
./loc.sh | grep 'Lines of Code' | cut -f4 -d" " | awk '{s+=$1}END{print s}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment