mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 00:59:11 +00:00
Update cheatsheets
This commit is contained in:
12
tldr/numfmt
12
tldr/numfmt
@@ -12,6 +12,18 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`numfmt --from si 1.5K`
|
||||
|
||||
- Convert 1500 to 1.5K (SI Units):
|
||||
|
||||
`numfmt --to si 1500`
|
||||
|
||||
- Convert 1.5K (IEC Units) to 1536:
|
||||
|
||||
`numfmt --from iec 1.5K`
|
||||
|
||||
- Use appropriate conversion based on the suffix:
|
||||
|
||||
`numfmt --from auto {{1.5Ki}}`
|
||||
|
||||
- Convert 5th field (1-indexed) to IEC Units without converting header:
|
||||
|
||||
`ls -l | numfmt --header=1 --field 5 --to iec`
|
||||
|
||||
Reference in New Issue
Block a user