在 shell 中查找大小非零的文件

and*_*s-h 8 bash perl

我需要获取目录中非零大小的文件名称列表。这应该在 shell 脚本中,所以 bash(或 Perl one-liner)将是理想的。

Jen*_*y D 12

find /path/to/dir -type f -size +0
Run Code Online (Sandbox Code Playgroud)