使用法: expand [オプション]... [ファイル]...
各々のファイル内のタブをスペースに変換し, 標準出力に書き出します.
ファイルの指定がなかったり, `-'であった場合, 標準入力から読み込みます.
長いオプションに必須の引数は短いオプションにも必須です.
-i, --initial do not convert tabs after non blanks
-t, --tabs=NUMBER have tabs NUMBER characters apart, not 8
-t, --tabs=リスト コンマ(,)で区切られたリストにタブストップを設定
--help この使い方を表示して終了
--version バージョン情報を表示して終了
Report expand bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: expand [OPTION]... [FILE]...
Convert tabs in each FILE to spaces, writing to standard output.
With no FILE, or when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
-i, --initial do not convert tabs after non blanks
-t, --tabs=NUMBER have tabs NUMBER characters apart, not 8
-t, --tabs=LIST use comma separated list of explicit tab positions
--help display this help and exit
--version output version information and exit
Report expand bugs to bug-coreutils@gnu.org
GNU coreutils home page:
EXPAND(1) EXPAND(1)
名前
expand - タブをスペースに変換する
書式
expand [-i] [-TAB1[,TAB2...] [-t TAB1[,TAB2...] [--initial]
[--tabs=TAB1[,TAB2...] [FILE...]
expand [--help] [--version]
説明
expand は指定された FILE の内容を標準出力に書き込む。その際、タブ文字を
適当な数のスペースに置き換える。 FILE が 1 つも与えられないと標準入力か
ら読み込む。また FILE が ‘-’ だった場合には、そのファイルには標準入力が
用いられる。
デ フォルトでは expand はすべてのタブをスペースに変換する。バックスペー
ス文字は出力に保存され、タブの計算における桁数を減らす作用をもたらす 。
デフォルトの動作は ‘-t 8’ が指定された場合と同じ (タブを 8 桁おきに設定
する)。
オプション
-TAB1[,TAB2...], -t TAB1[,TAB2...], --tabs=TAB1[,TAB2...]
タブストップが 1 つだけ与えられた場合には、タブを TAB1 おきに 設
定 す る (デフォルトは 8)。その他の場合は、タブを TAB1 桁、 TAB2
桁... に設定し (桁数は 0 から数え始める)、与えられた数以降のタブ
は スペース文字 1 つに置き換える。タブストップを --tabs オプショ
ンで指定する際には、それぞれの間は空白またはコンマで区切る。短縮
形式 -TAB... は推奨されない。
-i, --initial
それぞれの行の先頭タブ (initial tabs) のみをスペースに変換する。
「先頭タブ」とは、行先頭から続くタブ文字の集まりのこと。
--help 標準出力に使用方法のメッセージを出力して正常終了する。
--version
標準出力にバージョン情報を出力して正常終了する。
注意
プログラムのバグについては bug-textutils@gnu.org に報告してください。
man ページは Ragnar Hojland Espinosa
EXPAND(1) User Commands EXPAND(1)
NAME
expand - convert tabs to spaces
SYNOPSIS
expand [OPTION]... [FILE]...
DESCRIPTION
Convert tabs in each FILE to spaces, writing to standard output. With
no FILE, or when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options
too.
-i, --initial
do not convert tabs after non blanks
-t, --tabs=NUMBER
have tabs NUMBER characters apart, not 8
-t, --tabs=LIST
use comma separated list of explicit tab positions
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by David MacKenzie.
REPORTING BUGS
Report expand bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa