My personal dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112
  1. #!/bin/sh
  2. if [ "$#" -eq 0 ]; then
  3. DIR=`pwd`
  4. elif [ "$#" -eq 1 ]; then
  5. DIR=$1
  6. else
  7. echo "Usage: $0 <path>"
  8. exit 1
  9. fi
  10. du --max-depth=1 $DIR 2> /dev/null | sort -n -r | head -n20