aboutsummaryrefslogtreecommitdiff
path: root/documentation/manual-pages/ja/man1/expand.1
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/manual-pages/ja/man1/expand.1')
-rw-r--r--documentation/manual-pages/ja/man1/expand.1117
1 files changed, 117 insertions, 0 deletions
diff --git a/documentation/manual-pages/ja/man1/expand.1 b/documentation/manual-pages/ja/man1/expand.1
new file mode 100644
index 0000000000..4d45a854c4
--- /dev/null
+++ b/documentation/manual-pages/ja/man1/expand.1
@@ -0,0 +1,117 @@
+.\" Copyright (c) 1980, 1990, 1993
+.\" The Regents of the University of California. All rights reserved.
+.\"
+.\" 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.
+.\"
+.\" @(#)expand.1 8.1 (Berkeley) 6/9/93
+.\" %FreeBSD: src/usr.bin/expand/expand.1,v 1.13 2004/07/02 22:22:24 ru Exp %
+.\" $FreeBSD$
+.\"
+.Dd April 21, 2002
+.Dt EXPAND 1
+.Os
+.Sh 名称
+.Nm expand ,
+.Nm unexpand
+.Nd タブと空白文字の変換
+.Sh 書式
+.Nm expand
+.Oo
+.Fl t
+.Sm off
+.Ar tab1 , tab2 , ... , tabn
+.Sm on
+.Oc
+.Op Ar
+.Nm unexpand
+.Op Fl a
+.Oo
+.Fl t
+.Sm off
+.Ar tab1 , tab2 , ... , tabn
+.Sm on
+.Oc
+.Op Ar
+.Sh 解説
+.Nm
+ユーティリティは、指定されたファイルまたは標準入力を読み込み、
+タブを空白文字に変換して標準出力に出力します。
+バックスペース文字はそのまま出力し、
+同時にタブの計算に用いるカラム位置カウンタを一つ減じます。
+.Nm
+ユーティリティは、
+(ソートの前、特定のカラムに注目したいとき、など)
+タブを含んだテキストファイルの前処理用に便利です。
+.Pp
+.Nm unexpand
+ユーティリティは、
+.Nm
+とは逆に、空白文字をタブに戻します。デフォルトでは、
+行頭の空白文字とタブだけを、できるだけ長いタブの並びに戻します。
+.Pp
+オプションとしては以下のものがあります:
+.Bl -tag -width flag
+.It Fl a
+.Nm ( unexpand
+のみ)。
+行頭でなくても、二つ以上の空白文字が続いており、空白文字をタブに置き換えれば
+サイズが圧縮されるような箇所はすべてタブに置き換えられます。
+.It Fl t Sm Ar tab1 , tab2 , ... , tabn Sm
+コラム位置
+.Ar tab1 , tab2 , ... , tabn
+にタブストップを設定します。
+単一の数値が指定された場合、
+デフォルト値の 8 の代りに、
+その数値だけ離れたコラム位置にタブストップを設定します。
+.El
+.Sh 環境変数
+.Ev LANG ,
+.Ev LC_ALL ,
+.Ev LC_CTYPE
+の環境変数が、
+.Xr environ 7
+の記述通りに、
+.Nm
+と
+.Nm unexpand
+の実行に影響します。
+.Sh 診断
+.Ex -std expand unexpand
+.Sh 規格
+.Nm expand
+および
+.Nm unexpand
+のユーティリティは、
+.St -p1003.1-2001
+に適合しています。
+.Sh 歴史
+.Nm
+コマンドは
+.Bx 3.0
+から登場しました。