diff options
Diffstat (limited to 'ja/man/man1/cat.1')
-rw-r--r-- | ja/man/man1/cat.1 | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/ja/man/man1/cat.1 b/ja/man/man1/cat.1 new file mode 100644 index 0000000000..66183b6678 --- /dev/null +++ b/ja/man/man1/cat.1 @@ -0,0 +1,116 @@ +.\" Copyright (c) 1989, 1990, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" the Institute of Electrical and Electronics Engineers, Inc. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by the University of +.\" California, Berkeley and its contributors. +.\" 4. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)cat.1 8.3 (Berkeley) 5/2/95 +.\" jpman %Id: cat.1,v 1.3 1997/08/31 14:09:30 horikawa Stab % +.\" %Id: cat.1,v 1.3.2.1 1997/02/28 07:54:20 mpp Exp % +.\" +.Dd May 2, 1995 +.Dt CAT 1 +.Os BSD 3 +.Sh 名称 +.Nm cat +.Nd ファイルの連結、表示を行う +.Sh 書式 +.Nm cat +.Op Fl benstuv +.Op Fl +.Op Ar +.Sh 解説 +.Nm cat +はファイルを連続的に読み込み、標準出力に書き出します。 +.Ar file +はコマンドラインに記述された順番で処理されます。 +``-'' は標準入力を表します。 +.Pp +オプションは以下のとおりです。 +.Bl -tag -width Ds +.It Fl b +.Fl n +と同じですが、空行を行数として数えません。 +.It Fl e +.Fl v +と同じですが、各行の最後に +.Pq Ql \&$ +を表示します。 +.It Fl n +行番号を付け加えます。行番号は 1 から始まります。 +.It Fl s +連続した空行を圧縮します。連続した空行は 1 行の空行 +として出力されます。 +.It Fl t +.Fl v +と同じですが、タブを +.Ql ^I +で表示します。 +.It Fl u +出力のバッファリングを行いません。 +.It Fl v +表示できない文字を目に見える形で表示します。 +control-X は +.Ql ^X +、削除文字 (8進数で 0177) は +.Ql ^? +と表示されます。 +ASCII 文字でないもの ( 最上位ビットが立っているもの ) +は、 +.Ql M- +(メタ) のあとに残りの7ビットで表されるキャラクタを +表示します。 +.El +.Pp +.Nm cat +は実行に成功すると 0 を返し、エラーが起こると 0 より +大きな値を返します。 +.Sh バグ +シェルの出力リダイレクトのメカニズムが原因で、 +.Dq Li cat file1 file2 > file1 +は file1 に最初に入っているデータを消去してしまいます! +.Sh 関連項目 +.Xr head 1 , +.Xr more 1 , +.Xr pr 1 , +.Xr tail 1 , +.Xr vis 1 +.Rs +.%A Rob Pike +.%T "UNIX Style, or cat -v Considered Harmful" +.%J "USENIX Summer Conference Proceedings" +.%D 1983 +.Re +.Sh 歴史 +.Nm +は Version 1 AT&T UNIX から登場しました。 +Dennis Ritchie がマニュアルの初版をデザインし、執筆しました。 + |