1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.44.1.
2 .TH NUMFMT "1" "2016年2月" "GNU coreutils" "ユーザーコマンド"
4 numfmt \- 数字から人が読みやすい文字列への変換と、その逆変換
7 [\fIOPTION\fR]... [\fINUMBER\fR]...
9 .\" Add any additional description here
11 Reformat NUMBER(s), or the numbers from standard input if none are specified.
13 長いオプションで必須となっている引数は短いオプションでも必須です。
16 print warnings about invalid input
18 \fB\-d\fR, \fB\-\-delimiter\fR=\fIX\fR
19 use X instead of whitespace for field delimiter
21 \fB\-\-field\fR=\fIFIELDS\fR
22 replace the numbers in these input fields (default=1)
25 \fB\-\-format\fR=\fIFORMAT\fR
26 use printf style floating\-point FORMAT;
27 see FORMAT below for details
29 \fB\-\-from\fR=\fIUNIT\fR
30 auto\-scale input numbers to UNITs; default is 'none';
33 \fB\-\-from\-unit\fR=\fIN\fR
34 specify the input unit size (instead of the default 1)
37 use locale\-defined grouping of digits, e.g. 1,000,000
38 (which means it has no effect in the C/POSIX locale)
40 \fB\-\-header\fR[=\fIN\fR]
41 print (without converting) the first N header lines;
42 N defaults to 1 if not specified
44 \fB\-\-invalid\fR=\fIMODE\fR
45 failure mode for invalid numbers: MODE can be:
46 abort (default), fail, warn, ignore
48 \fB\-\-padding\fR=\fIN\fR
49 pad the output to N characters; positive N will
50 right\-align; negative N will left\-align;
51 padding is ignored if the output is wider than N;
52 the default is to automatically pad if a whitespace
55 \fB\-\-round\fR=\fIMETHOD\fR
56 use METHOD for rounding when scaling; METHOD can be:
57 up, down, from\-zero (default), towards\-zero, nearest
59 \fB\-\-suffix\fR=\fISUFFIX\fR
60 add SUFFIX to output numbers, and accept optional
61 SUFFIX in input numbers
63 \fB\-\-to\fR=\fIUNIT\fR
64 auto\-scale output numbers to UNITs; see UNIT below
66 \fB\-\-to\-unit\fR=\fIN\fR
67 the output unit size (instead of the default 1)
69 \fB\-z\fR, \fB\-\-zero\-terminated\fR
80 no auto\-scaling is done; suffixes will trigger an error
83 accept optional single/two letter suffix:
91 accept optional single letter suffix:
98 accept optional single letter suffix:
105 accept optional two\-letter suffix:
110 .SS "FIELDS supports cut(1) style field ranges:"
113 N'th field, counted from 1
116 from N'th field, to end of line
119 from N'th to M'th field (inclusive)
122 from first to M'th field (inclusive)
127 Multiple fields/ranges can be separated with commas
129 FORMAT must be suitable for printing one floating\-point argument '%f'.
130 Optional quote (%'f) will enable \fB\-\-grouping\fR (if supported by current locale).
131 Optional width value (%10f) will pad output. Optional zero (%010f) width
132 will zero pad the number. Optional negative values (%\-10f) will left align.
133 Optional precision (%.1f) will override the input determined precision.
135 Exit status is 0 if all input numbers were successfully converted.
136 By default, numfmt will stop at the first conversion error with exit status 2.
137 With \fB\-\-invalid=\fR'fail' a warning is printed for each conversion error
138 and the exit status is 2. With \fB\-\-invalid=\fR'warn' each conversion error is
139 diagnosed, but the exit status is 0. With \fB\-\-invalid=\fR'ignore' conversion
140 errors are not diagnosed and the exit status is 0.
143 $ numfmt \fB\-\-to\fR=\fIsi\fR 1000
147 \f(CW$ numfmt --to=iec 2048\fR
151 \f(CW$ numfmt --to=iec-i 4096\fR
155 \f(CW$ echo 1K | numfmt --from=si\fR
159 \f(CW$ echo 1K | numfmt --from=iec\fR
163 \f(CW$ df -B1 | numfmt --header --field 2-4 --to=si\fR
165 \f(CW$ ls -l | numfmt --header --field 5 --to=iec\fR
167 \f(CW$ ls -lh | numfmt --header --field 5 --from=iec --padding=10\fR
169 \f(CW$ ls -lh | numfmt --header --field 5 --from=iec --format %10f\fR
171 GNU coreutils のオンラインヘルプ: <http://www.gnu.org/software/coreutils/>
172 numfmt の翻訳に関するバグは <http://translationproject.org/team/ja.html> に連絡してください。
173 完全な文書は <http://www.gnu.org/software/coreutils/numfmt> にあります。
174 ローカルでは info '(coreutils) numfmt invocation' で参照できます。
178 Copyright \(co 2016 Free Software Foundation, Inc.
179 ライセンス GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
181 This is free software: you are free to change and redistribute it.
182 There is NO WARRANTY, to the extent permitted by law.
185 の完全なマニュアルは Texinfo マニュアルとして整備されている。もし、
189 のプログラムが正しくインストールされているならば、コマンド
193 を使用すると完全なマニュアルを読むことができるはずだ。