FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

Instantly share code, notes, and snippets.

Created January 28, 2011 21:45
Show Gist options
  • Select an option

    Clone this repository at <script src="https://gist.github.com/allthingscode/801046.js"></script>
  • Save allthingscode/801046 to your computer and use it in GitHub Desktop.

Select an option

Clone this repository at <script src="https://gist.github.com/allthingscode/801046.js"></script>
Save allthingscode/801046 to your computer and use it in GitHub Desktop.
This simply prints out the number of files and amount of space they are taking up. This can be useful for determining what is eating up all your hard-drive space.
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
#
#
printf "%s %s %s\n" "There are `find "$1" -type f | wc -l` regular files" \
"taking up `du -sh "$1"|awk '{print $1}'` space" \
"in folder "$1""
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Back | FazBrowse Home | New Git URL