in reply to Stat and file size
Perhaps the following -size File Test Operator and grep on a glob will work for you:
my @nonZeroSizeFiles = grep -s, <*>;
And in case you'd like to find zero-size files
my @zeroSizeFiles = grep !-s, <*>;
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stat and file size
by jwkrahn (Abbot) on Jul 29, 2012 at 06:45 UTC | |
|
Re^2: Stat and file size
by Ormus (Initiate) on Jul 28, 2012 at 20:01 UTC | |
by Kenosis (Priest) on Jul 28, 2012 at 20:09 UTC |