Last active
May 31, 2019 19:23
-
-
Save naganowl/6d3babec74663108cc652de26e7a0e2f to your computer and use it in GitHub Desktop.
Average length of stylesheet
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
# Get list of all files | Print out each line count | Remove final line total | Calculate average | |
find . -name *.scss | xargs wc -l | sed -e '$ d' | awk '{ total += $1; count++ } END { print total/count }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inspired by https://linuxconfig.org/calculate-column-average-using-bash-shell