Created
December 6, 2012 02:51
-
-
Save matthewmueller/4221443 to your computer and use it in GitHub Desktop.
get the filesize of files
This file contains 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
## filesize | |
# | |
# Usage: | |
# | |
# filesize blah.js file.txt | |
# | |
# 12K blah.js | |
# 10K file.txt | |
# | |
function filesize() { | |
for file | |
do | |
du -h $file | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment