coreutils/src
Jeffrey Finkelstein a375644c50 dd: only print concise byte counts if large enough
Update `dd` to only print a concise form of the number of bytes with
an SI prefix (like "1 MB" or "2 GB") if the number is at least
1000. Similarly, only print the concise form with an IEC prefix (like
"1 MiB" or "2 GiB") if the number is at least 1024. For example,

    $ head -c 999 /dev/zero | dd > /dev/null
    1+1 records in
    1+1 records out
    999 bytes copied, 0.0 s, 999.0 KB/s

    $ head -c 1000 /dev/zero | dd > /dev/null
    1+1 records in
    1+1 records out
    1000 bytes (1000 B) copied, 0.0 s, 1000.0 KB/s

    $ head -c 1024 /dev/zero | dd > /dev/null
    2+0 records in
    2+0 records out
    1024 bytes (1 KB, 1024 B) copied, 0.0 s, 1.0 MB/s
2022-06-11 23:16:16 -04:00
..
bin docs: don't download the tldr archive (#3415) 2022-04-17 21:33:51 +02:00
uu dd: only print concise byte counts if large enough 2022-06-11 23:16:16 -04:00
uucore build(deps): bump once_cell from 1.11.0 to 1.12.0 2022-06-06 19:18:28 +00:00
uucore_procs Version 0.0.14 (#3553) 2022-05-22 19:57:19 +02:00