使用法: tac [オプション]... [ファイル]...
ファイル毎に行を逆順にして標準出力に書き込みます
FILE が指定されないか FILE として - が指定された場合, 標準入力を読み込みます
長いオプションに必須の引数は短いオプションにも必須です.
-b, --before 区切り文字列をレコードの前ではなく後ろに
-r, --regex 区切り文字列を正規表現として解釈
-s, --separator=STRING 改行文字の代わりに STRING を区切り文字列に
--help この使い方を表示して終了
--version バージョン情報を表示して終了
Report tac bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: tac [OPTION]... [FILE]...
Write each FILE to standard output, last line first.
With no FILE, or when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
-b, --before attach the separator before instead of after
-r, --regex interpret the separator as a regular expression
-s, --separator=STRING use STRING as the separator instead of newline
--help display this help and exit
--version output version information and exit
Report tac bugs to bug-coreutils@gnu.org
GNU coreutils home page:
TAC(1) TAC(1)
名前
tac - ファイルを結合して逆順に表示する
書式
tac [-br] [-s SEPARATOR] [--before] [--regex] [FILE...]
tac [--help] [--version]
説明
tac は指定されたファイルの内容を標準出力に書き込む。その際、レコードを
逆順にする (レコードのデフォルトは行単位)。 FILE が一つも与えられないと
標準入力から読み込む。また FILE が ‘-’ だった場合には、そのファイルには
標準入力が用いられる。
レコードはセパレータ文字列によって分離される (デフォルトは改行文字)。デ
フ ォルトでは、セパレータ文字列は (入力ファイル中で後置されていた) レコ
ードの最後に付加されて出力される。
DOS プラットフォームでは、 tac はファイルをバイナリモードで読み込む。詳
細は cat(1) を見よ。
オプション
-b, --before
セパレータ文字列を (入力ファイル中で前置されていた) レコードの先
頭に付加する。
-r, --regex
セパレータ文字列を正規表現として取り扱う。
-s SEPARATOR, --separator=SEPARATOR
改行文字の代わりに、 STRING をレコードのセパレータに用いる
--help 標準出力に使用方法のメッセージを出力して正常終了する。
--version
標準出力にバージョン情報を出力して正常終了する。
注意
プログラムのバグについては bug-textutils@gnu.org に報告してください。
man ページは Ragnar Hojland Espinosa
TAC(1) User Commands TAC(1)
NAME
tac - concatenate and print files in reverse
SYNOPSIS
tac [OPTION]... [FILE]...
DESCRIPTION
Write each FILE to standard output, last line first. With no FILE, or
when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options
too.
-b, --before
attach the separator before instead of after
-r, --regex
interpret the separator as a regular expression
-s, --separator=STRING
use STRING as the separator instead of newline
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by Jay Lepreau and David MacKenzie.
REPORTING BUGS
Report tac bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa