Created
August 2, 2012 23:36
-
-
Save Gen2ly/3242049 to your computer and use it in GitHub Desktop.
Print disk usage
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
#!/bin/bash | |
# Print disk usage | |
# Key word exclusions (seperated by space) | |
exclude=(sandfox) | |
df -h | grep -e '^Filesystem' -e '^/dev' | \ | |
grep -vf <(printf "%s\n" "${exclude[@]}") | \ | |
sed 's/^/ /g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment