1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 04:02:09 +02:00
tldr/pages.ko/common/numfmt.md
K.B.Dharun Krishna 898f711019
pages/*: update GNU coreutils links, sync translation pages (#15543)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-18 18:45:33 +05:30

518 B

numfmt

숫자를 사람이 읽기 쉬운 문자열로 변환하거나 그 반대로 변환. 더 많은 정보: https://www.gnu.org/software/coreutils/manual/html_node/numfmt-invocation.html.

  • 1.5K(SI 단위)를 1500으로 변환:

numfmt --from=si 1.5K

  • 5번째 필드(1부터 시작)를 IEC 단위로 변환하되 헤더는 변환하지 않음:

ls -l | numfmt --header=1 --field=5 --to=iec

  • IEC 단위로 변환하고, 5자리를 채워 왼쪽 정렬:

du -s * | numfmt --to=iec --format="%-5f"