Usage: wc [OPTION]... [FILE]...
or: wc [OPTION]... --files0-from=F
Print newline, word, and byte counts for each FILE, and a total line if
more than one FILE is specified. With no FILE, or when FILE is -,
read standard input.
-c, --bytes print the byte counts
-m, --chars print the character counts
-l, --lines print the newline counts
--files0-from=F read input from the files specified by
NUL-terminated names in file F;
If F is - then read names from standard input
-L, --max-line-length print the length of the longest line
-w, --words print the word counts
--help この使い方を表示して終了
--version バージョン情報を表示して終了
Report wc bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: wc [OPTION]... [FILE]...
or: wc [OPTION]... --files0-from=F
Print newline, word, and byte counts for each FILE, and a total line if
more than one FILE is specified. With no FILE, or when FILE is -,
read standard input.
-c, --bytes print the byte counts
-m, --chars print the character counts
-l, --lines print the newline counts
--files0-from=F read input from the files specified by
NUL-terminated names in file F;
If F is - then read names from standard input
-L, --max-line-length print the length of the longest line
-w, --words print the word counts
--help display this help and exit
--version output version information and exit
Report wc bugs to bug-coreutils@gnu.org
GNU coreutils home page:
WC(1) WC(1)
名前
wc - ファイルのバイト数・単語数・行数を表示する
書式
wc [-clmwL] [--bytes] [--chars] [--lines] [--max-line-length] [--words]
[FILE]...
wc [--help] [--version]
説明
wc は指定された各 FILE のバイト数・空白で区切られた単語の数・行数を数え
る 。 FILE が一つも与えられないと標準入力から読み込む。また FILE が ‘-’
だった場合には、そのファイルには標準入力が用いられる。
デフォルトでは、 wc は 3 つ全てを出力する。オプション指定により出力する
項 目を指定できる。オプションは先に指定したものを取り消すことはできない
。したがって ‘wc --bytes --words’ はバイト数と単語数の両方を出力する。
wc は最後の行に各 FILE のカウント数を合計して表示する。結果は、改行数・
単語数・バイト数の順に表示される。
オプション
-c, --bytes
バイト数だけを出力する。ロケールによっては、--chars とは結果が異
なるかもしれない。
-l, --lines
改行数だけを出力する。
-m, --chars
文字数だけを出力する。ロケールによっては、--bytes とは結果が異な
るかもしれない。
-w, --words
単語数だけを出力する。
-L, --max-line-length
ファイル中の行の最大長だけを表示する。一つ以上のファイルが指定さ
れた場合は、それらのうちでの最大長を表示する (合計ではない)。
--help 標準出力に使用方法のメッセージを出力して正常終了する。
--version
標準出力にバージョン情報を出力して正常終了する。
POSIX の注意
wc は 7 桁のフィールドに右詰でカウント数を表示する。しかし POSIX は、カ
ウ ントの間 (と最後のファイル名との間) にはスペース一つだけをおくように
命じている。後者のフォーマットは、環境変数 POSIXLY_CORRECT を指定すると
得られる。
注意
プログラムのバグについては bug-textutils@gnu.org に報告してください。
このページは Ragnar Hojland Espinosa
WC(1) User Commands WC(1)
NAME
wc - print newline, word, and byte counts for each file
SYNOPSIS
wc [OPTION]... [FILE]...
wc [OPTION]... --files0-from=F
DESCRIPTION
Print newline, word, and byte counts for each FILE, and a total line if
more than one FILE is specified. With no FILE, or when FILE is -, read
standard input.
-c, --bytes
print the byte counts
-m, --chars
print the character counts
-l, --lines
print the newline counts
--files0-from=F
read input from the files specified by NUL-terminated names in
file F; If F is - then read names from standard input
-L, --max-line-length
print the length of the longest line
-w, --words
print the word counts
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by Paul Rubin and David MacKenzie.
REPORTING BUGS
Report wc bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa