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.
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.
will find files with a size of one or more bytes in
/searchdir
and below.Shell only, avoiding find, without recursion into subdirectories:
bash (for unset GLOBIGNORE):