Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: files smaller than threshold?



On 10/15/05, Deliverable Mail <deliverable@xxxxxxxxx> wrote:
> What is the fastest way, in zsh, to list all files smaller than certain
> size?
>
> Cheers,
> Alexy

something like ls *(L-500) to see all files smaller than 500 bytes, as per

       L[+|-]n
              files less than n bytes (-), more than n bytes (+), or
exactly  n  bytes  in
              length.  If this flag is directly followed by a `k'
(`K'), `m' (`M'), or `p'
              (`P') (e.g. `Lk-50') the check is performed with 
kilobytes,  megabytes,  or
              blocks (of 512 bytes) instead.


--
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author