find files with non-zero size in shell
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.
find /path/to/dir -type f -size +0
find /searchdir -type f -size +0c
will find files with a size of one or more bytes in /searchdir
and below.