Created
August 14, 2019 19:01
-
-
Save valtoni/7073ef4079d8271e7e5a324f054cab51 to your computer and use it in GitHub Desktop.
Display in kibibytes the sum of all files in current directory
This file contains hidden or 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
| ls -lap | grep -v / | awk '{ | |
| size = size + $5; | |
| } | |
| END { | |
| print size/1024 | |
| }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment