Skip to content

Instantly share code, notes, and snippets.

@nohtyp
Created November 27, 2013 00:06
Show Gist options
  • Save nohtyp/7668575 to your computer and use it in GitHub Desktop.
Save nohtyp/7668575 to your computer and use it in GitHub Desktop.
This one-liner will total up the size of your file data
find . -name "*.txt" -ls | awk '{total += $7} END {print total}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment