Bash – find files with non-zero size in shell

bashperl

I need to get a list of names of files with non-zero size inside a directory. This should be in a shell script, so bash (or a Perl one-liner) would be ideal.

Best Answer

find /path/to/dir -type f -size +0