aboutsummaryrefslogblamecommitdiff
path: root/bin/dub
blob: 5c2161f1a39505400820edb4aff8bc57c12b5a29 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                       




                     
              
             
#!/bin/sh
# List the biggest files in a directory
dir=$1 lines=${2:-10}
cd -- "$dir" || exit
set -- .* *
shift 2
du -bs -- "$@" |
sort -k1 -nr |
sed "$lines"q