Skip to content

Instantly share code, notes, and snippets.

@tankywoo
Created December 30, 2012 08:54
Show Gist options
  • Save tankywoo/4411681 to your computer and use it in GitHub Desktop.
Save tankywoo/4411681 to your computer and use it in GitHub Desktop.
search the dir, output the blocks it have
#!/bin/bash
dir=$1
cd $dir
for ff in *
do
if [ -d "$ff" ]; then
du -hs "$ff";
fi;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment