find . -maxdepth 1 -type f -exec wc -l {} + | awk '{sum+=$1} END {print sum}'
Created
March 14, 2019 17:16
-
-
Save Eddy-Barraud/1b0c34705953166da9badfd0753221bb to your computer and use it in GitHub Desktop.
sum the number of lines in each file of a folder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment