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