dotfiles/.local/bin/scripts/delbig

5 lines
153 B
Plaintext
Raw Normal View History

2022-01-31 10:16:04 +00:00
#!/bin/sh
# Find and remove sizeable files
case $1 in ([0-9]|[0-9][0-9]) threshold=$1; shift;; esac
find -size +${threshold:-50}M -exec rm -vi "$@" {} +