dotfiles/.local/bin/scripts/delbig

5 lines
153 B
Bash
Executable File

#!/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 "$@" {} +