diff options
author | Jakob Truelsen <jakob@scalgo.com> | 2013-01-21 06:29:12 +0100 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2013-01-21 11:38:54 +0100 |
commit | f8afbb424c050578617bc9ddf4ccf69ed2bdb953 (patch) | |
tree | 5b1f5b44bcb916aa69eb3f731b5736ca037751b5 /NEWS | |
parent | 40b2770a22828e347c9ff0640f4ee0702319e8e7 (diff) | |
download | coreutils-f8afbb424c050578617bc9ddf4ccf69ed2bdb953.tar.xz |
du: add -t SIZE, --threshold=SIZE option
* src/du.c (opt_threshold): Add variable to hold the value of
the --threshold option specified by the user.
(long_options): Add a required_argument entry for the new
--threshold option.
(usage): Add --threshold option.
(process_file): Elide printing the entry if its size does not
meet the value specified by the --threshold option.
(main): In the argument parsing loop, add a case for the new
-t option. Convert the given argument by permitting the
well-known suffixes for megabyte, gigabytes, etc.
Handle the special case "-0": give an error as this value is
not permitted.
* doc/coreutils.texi (du invocation): Add documentation for the
above new option.
* tests/du/threshold.sh: Add new test to exercise the new option.
* tests/local.mk (all_tests): Mention the above test.
Co-authored-by: Bernhard Voelker <mail@bernhard-voelker.de>
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -8,6 +8,10 @@ GNU coreutils NEWS -*- outline -*- to include in the output, or all available columns if the FIELD_LIST is omitted. Note this enables df to output both block and inode fields together. + du now accepts the --threshold=SIZE option to restrict the output to entries + with such a minimum SIZE (or a maximum SIZE if it is negative). + du recognizes -t SIZE as equivalent, for compatibility with FreeBSD. + ** Bug fixes cp --no-preserve=mode now no longer exits non-zero. |