diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-07-01 11:15:48 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-07-01 11:15:48 +1200 |
commit | f932baa3120c11e98181aff1db715e98d852c141 (patch) | |
tree | 4bcde5045d32228b70e6df371069311e532c8407 /bin/dub | |
parent | Run gscr(1) in subshell (diff) | |
download | dotfiles-f932baa3120c11e98181aff1db715e98d852c141.tar.gz dotfiles-f932baa3120c11e98181aff1db715e98d852c141.zip |
Add dub(1)
Diffstat (limited to 'bin/dub')
-rwxr-xr-x | bin/dub | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/dub b/bin/dub new file mode 100755 index 00000000..94653b77 --- /dev/null +++ b/bin/dub @@ -0,0 +1,6 @@ +#!/bin/sh +# List the biggest files in a directory +cd -- "${1:-.}" || exit +du -bs -- * | +sort -k1 -nr | +sed "${2:-10}"q |