numfmt: add Dutch translation and fix placeholders (#13156)

This commit is contained in:
Sebastiaan Speck 2024-06-26 17:23:28 +02:00 committed by GitHub
parent d318f11532
commit c7f0a711d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 3 deletions

16
pages.nl/common/numfmt.md Normal file
View File

@ -0,0 +1,16 @@
# numfmt
> Converteer getallen naar en van mens-leesbare strings.
> Meer informatie: <https://www.gnu.org/software/coreutils/numfmt>.
- Converteer 1.5K (SI-eenheden) naar 1500:
`numfmt --from=si 1.5K`
- Converteer het 5e veld (1-gebaseerd) naar IEC-eenheden zonder de header te converteren:
`ls -l | numfmt --header=1 --field=5 --to=iec`
- Converteer naar IEC-eenheden, opvullen met 5 tekens, links uitgelijnd:
`du -s * | numfmt --to=iec --format="%-5f"`

View File

@ -5,12 +5,12 @@
- Convert 1.5K (SI Units) to 1500:
`numfmt --from={{si}} {{1.5K}}`
`numfmt --from=si 1.5K`
- Convert 5th field (1-indexed) to IEC Units without converting header:
`ls -l | numfmt --header={{1}} --field={{5}} --to={{iec}}`
`ls -l | numfmt --header=1 --field=5 --to=iec`
- Convert to IEC units, pad with 5 characters, left aligned:
`du -s * | numfmt --to={{iec}} --format="{{%-5f}}"`
`du -s * | numfmt --to=iec --format="%-5f"`