#!/bin/bash cd /some/directory/with/the/files/in curr_dir=$(pwd) #sets the working-dir #Create a loop to look for CD's for lists in $(echo * 2>/dev/null); do #Check for file type if [ -f $lists ]; then du $lists | grep -i "650 MB" > ./650mb_list #Now everything else below this is small? fi