Show Large Files in Terminal

Abgelegt unter macOS

#!/bin/sh
echo “Disk: ”
read input_variable
echo “Search Sizes larger than x MB: ”
read input_variable3
find “/volumes/$input_variable/” -type f -size +”$input_variable3″M -exec ls -lh {} \; 2> /dev/null | awk ‘{ print $5 ” > ” $NF}’ #thatsit
exit