I want to do this:ls -altrhS 'find / -type d \( ! -name tmp -prune \) -size +10000k 2> /dev/null -print' | egrep -v 'ibd|MYD|MYI'  So I want to list, in that format, files of a specific size excluding the tmp directory. All that I've read says that should do it, but it does not work, I keep getting the temp directory stuff as well.  
ls and find command excluding a certain directory
grep;find;ls
Try this:find / -not -path */tmp/* -size +10000k -ls 2> /dev/null | \sort -n -k7 | egrep -v 'ibd|MYD|MYI'Explanation:find / -not -path */tmp/* -size +10000k -ls: find everthing whose path does not start with /tmp/ with the size greater than 10000k and prints the output in find's own ls -dils format.sort -n -k7: As your statement in the question ls -altrhS, I assume you want the output to be sorted by the filesize ascending. In the ls -dils output of find the 7th field is the filesizeegrep -v 'ibd|MYD|MYI' and your own egrep part to filter away those stringsEdit:If you want the human readable file size format of ls use this command:find / -type f -not -path */tmp/* -size +10000k -printf %s %p\n 2> /dev/null | sort -n -k1 | cut -d' ' -f2- | xargs -L 1 ls -lh