[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: --min-size option for du (patch)
From: |
Eric Blake |
Subject: |
Re: --min-size option for du (patch) |
Date: |
Wed, 14 Jan 2009 20:44:33 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Paul Chambers on 1/14/2009 3:54 PM:
> I'd like to submit the attached small patch for du. it adds a
> '--min-size' option, which can be used to filter the output to only
> include items of that size or greater.
It seems like find(1) might be a better tool for this. It has the
advantage of already being standardized, so you wouldn't be relying on a
non-portable extension. For example, this is the POSIX-mandated way to
find all files that are at least a mebibyte in size:
find . -size $(( 1024 * 1024 ))c
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAklusSEACgkQ84KuGfSFAYC1UgCfQY3Wjf8PWrfNv+aPT5U7UcsU
lmoAn0fImLAtzwXFCKedPWjifQEClQRk
=TDCT
-----END PGP SIGNATURE-----