Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find A_LIST_OF_FOLDERS_AND_FILES -type f -exec grep -Iq . {} \; -print | wc -l
- # A_LIST_OF_FOLDERS_AND_FILES => use the previous command as: find a b.txt c where a and c are directories or files
- for a in $(find src -type f -exec grep -Iq . {} \; -print); do wc -l $a; done | awk '{split($0,a," "); sum += a[1]} END {print sum}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement