Unix-commands-cat
提供:Dev Guides
cat-Unix、Linuxコマンド
NAME
概要
説明
Catコマンドは、ファイル、または標準入力を標準出力に連結します。 FILEがない場合、またはFILEが-の場合、標準入力を読み取ります。
オプション
Tag | Description |
---|---|
-A, --show-all | equivalent to -vET |
-b, --number-nonblank | number nonblank output lines |
-e | equivalent to -vE |
-E, --show-ends | display $ at end of each line |
-n, --number | number all output lines |
-s, --squeeze-blank | never more than one single blank line |
-t | equivalent to -vT |
-T,--show-tabs | display TAB characters as ^I |
-u | (ignored) |
-v, --show-nonprinting | use ^ and M- notation, except for LFD and TAB. display this help and exit |
--help | display this help and exit |
--version | output version information and exit |
例
2つのサンプルファイルを作成する
ファイルのコンテンツを表示します。
すべてのtxtファイルのコンテンツを表示します。
2つのファイルを連結します。
ファイルの内容を変数に入れます。
link:/cgi-bin/printpage.cgi [__印刷]