SyntaxFix
Write A Post
Hire A Developer
Questions
Just an alternative:
ls -lAR | grep -v '^d' | awk '{total += $5} END {print "Total:", total}'
grep -v '^d' will exclude the directories.
grep -v '^d'