CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
MIT License
7.93k
stars
209
forks
source link
Incorrect handling of "k" "K" and similar suffixes for df, should be binary #592
Running
df -Bk
ordf -BK
is equivalent todf -BKiB
but jc handles this as equivalent todf -BKB
.Coreutils handling of k/K as identical to KiB is documented here: https://www.gnu.org/software/coreutils/manual/html_node/Block-size.html, not sure how other systems handle this.
As a workaround it is possible to run
df -BKB
ordf -BKiB
explicitly