mirror of
https://github.com/curl/curl.git
synced 2026-08-26 21:13:34 +03:00
Update docs/cmdline-opts/write-out.md
Co-authored-by: Daniel Stenberg <daniel@haxx.se>
This commit is contained in:
parent
e762d33304
commit
d03d703868
1 changed files with 5 additions and 6 deletions
|
|
@ -57,12 +57,11 @@ when using this option to properly escape. If this option is used at the
|
||||||
command prompt then the % cannot be escaped and unintended expansion is
|
command prompt then the % cannot be escaped and unintended expansion is
|
||||||
possible.
|
possible.
|
||||||
|
|
||||||
The option allow a filter to be added to the variables that express a size.
|
To format numerical output for better human readability, append the `:pretty`
|
||||||
This allow to convert the size using the standard suffixes K, M, G... like
|
modifier to a numerical variable name (e.g., `--write-out '%{size_download:pretty}'`).
|
||||||
what's printed by default on the CLI. The filter allow maximum 4 digits plus
|
This modifier applies standard SI metric suffixes (K, M, G, etc.) and
|
||||||
one suffix character. To use it, add the `:pretty` suffix to the variable. For
|
constrains the output to a maximum width of 5 characters, including the
|
||||||
example, `--write-out '%{size_download:pretty}'`. This only works with variable
|
suffix. This works only with numerical variables.
|
||||||
that output a size like parameter
|
|
||||||
|
|
||||||
The variables available are:
|
The variables available are:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue