Skip to content

Instantly share code, notes, and snippets.

@matthewmueller
Created December 6, 2012 02:51
Show Gist options
  • Select an option

  • Save matthewmueller/4221443 to your computer and use it in GitHub Desktop.

Select an option

Save matthewmueller/4221443 to your computer and use it in GitHub Desktop.
get the filesize of files
## 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