coreutils commands: move pages to common/ folder (#2442)

This commit is contained in:
Felix Yan
2018-10-17 01:29:50 +08:00
committed by Starbeamrainbowlabs
parent 9ef7ec119a
commit 72b4f22ff9
36 changed files with 4 additions and 23 deletions

15
pages/common/numfmt.md Normal file
View File

@@ -0,0 +1,15 @@
# numfmt
> Convert numbers to and from human-readable strings.
- Convert 1.5K (SI Units) to 1500:
`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}}`
- Convert to IEC units, pad with 5 characters, left aligned:
`du -s * | numfmt --to={{iec}} --format={{"%-5f"}}`