Usage: cut OPTION... [FILE]...
ファイルの各行から選択した部分だけを切り出して, 標準出力に表示します.
長いオプションに必須の引数は短いオプションにも必須です.
-b, --bytes=LIST select only these bytes
-c, --characters=LIST select only these characters
-d, --delimiter=DELIM use DELIM instead of TAB for field delimiter
-f, --fields=LIST select only these fields; also print any line
that contains no delimiter character, unless
the -s option is specified
-n with -b: don't split multibyte characters
--complement complement the set of selected bytes, characters
or fields
-s, --only-delimited 区切り文字を含まない行を出力させない
--output-delimiter=STRING 出力の区切り文字として STRING を使用
デフォルトでは入力の区切り文字を使用
--help この使い方を表示して終了
--version バージョン情報を表示して終了
Use one, and only one of -b, -c or -f. Each LIST is made up of one
range, or many ranges separated by commas. Selected input is written
in the same order that it is read, and is written exactly once.
Each range is one of:
N N'th byte, character or field, counted from 1
N- from N'th byte, character or field, to end of line
N-M from N'th to M'th (included) byte, character or field
-M from first to M'th (included) byte, character or field
With no FILE, or when FILE is -, read standard input.
Report cut bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: cut OPTION... [FILE]...
Print selected parts of lines from each FILE to standard output.
Mandatory arguments to long options are mandatory for short options too.
-b, --bytes=LIST select only these bytes
-c, --characters=LIST select only these characters
-d, --delimiter=DELIM use DELIM instead of TAB for field delimiter
-f, --fields=LIST select only these fields; also print any line
that contains no delimiter character, unless
the -s option is specified
-n with -b: don't split multibyte characters
--complement complement the set of selected bytes, characters
or fields
-s, --only-delimited do not print lines not containing delimiters
--output-delimiter=STRING use STRING as the output delimiter
the default is to use the input delimiter
--help display this help and exit
--version output version information and exit
Use one, and only one of -b, -c or -f. Each LIST is made up of one
range, or many ranges separated by commas. Selected input is written
in the same order that it is read, and is written exactly once.
Each range is one of:
N N'th byte, character or field, counted from 1
N- from N'th byte, character or field, to end of line
N-M from N'th to M'th (included) byte, character or field
-M from first to M'th (included) byte, character or field
With no FILE, or when FILE is -, read standard input.
Report cut bugs to bug-coreutils@gnu.org
GNU coreutils home page:
CUT(1) CUT(1)
名前
cut - 各行から選択した部分を表示する
書式
cut [-ns] [-b BYTE-LIST] [-c CHARACTER-LIST] [-d DELIM] [-f FIELD-LIST]
[--bytes=BYTE-LIST] [--characters=CHARACTER-LIST] [--delimiter=DELIM]
[--fields=FIELD-LIST] [--only-delimited] [FILE...]
cut [--help] [--version]
説明
cut は、与えられた FILE それぞれから、各行の一部を選択して標準出力に書
き出す。 FILE が一つも与えられないと標準入力から読み込む。また FILE が
‘-’ だった場合には、そのファイルには標準入力が用いられる。
BYTE-LIST, CHARACTER-LIST, FIELD-LIST には、一つ以上の数値か範囲 (ダッ
シュで接続された2つの数値) をコンマで区切って指定する。バイト・文字・フ
ィ ー ル ドの番号は 1 から振られる。不完全な範囲を指定することもできる:
‘-M’ は ‘1-M’ という意味に、 ‘N-’ は ‘N’ 番目から行の最後のフィールドま
でという意味になる。
オプション
-b BYTE-LIST, --bytes=BYTE-LIST
BYTE-LIST にリストされた位置の各バイトだけを表示する。タブやバッ
クスペースもほかの普通の文字と同じように1バイトとして扱う。
-c CHARACTER-LIST, --characters=CHARACTER-LIST
CHARACTER-LIST にリストされた位置の各文字だけを表示する。これ は
いまのところ -b と同じだが、国際化すると異なる動作となるだろう。
タブやバックスペースもほかの普通の文字と同じように1文字として 扱
う。
-d DELIM, delimiter=DELIM
-f と一緒に用いると、フィールドの区切り文字として DELIM の先頭の
文字を使う (デフォルトは
CUT(1) User Commands CUT(1)
NAME
cut - remove sections from each line of files
SYNOPSIS
cut OPTION... [FILE]...
DESCRIPTION
Print selected parts of lines from each FILE to standard output.
Mandatory arguments to long options are mandatory for short options
too.
-b, --bytes=LIST
select only these bytes
-c, --characters=LIST
select only these characters
-d, --delimiter=DELIM
use DELIM instead of TAB for field delimiter
-f, --fields=LIST
select only these fields; also print any line that contains no
delimiter character, unless the -s option is specified
-n with -b: don’t split multibyte characters
--complement
complement the set of selected bytes, characters or fields
-s, --only-delimited
do not print lines not containing delimiters
--output-delimiter=STRING
use STRING as the output delimiter the default is to use the
input delimiter
--help display this help and exit
--version
output version information and exit
Use one, and only one of -b, -c or -f. Each LIST is made up of one
range, or many ranges separated by commas. Selected input is written
in the same order that it is read, and is written exactly once. Each
range is one of:
N N’th byte, character or field, counted from 1
N- from N’th byte, character or field, to end of line
N-M from N’th to M’th (included) byte, character or field
-M from first to M’th (included) byte, character or field
With no FILE, or when FILE is -, read standard input.
AUTHOR
Written by David M. Ihnat, David MacKenzie, and Jim Meyering.
REPORTING BUGS
Report cut bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa