使用法: fold [オプション]... [ファイル]...
ファイルの各行の折り返しを行い, 結果を標準出力に書き込みます.
長いオプションに必須の引数は短いオプションにも必須です.
-b, --bytes count bytes rather than columns
-c, --characters count characters rather than columns
-s, --spaces break at spaces
-w, --width=WIDTH use WIDTH columns instead of 80
--help この使い方を表示して終了
--version バージョン情報を表示して終了
Report fold bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: fold [OPTION]... [FILE]...
Wrap input lines in each FILE (standard input by default), writing to
standard output.
Mandatory arguments to long options are mandatory for short options too.
-b, --bytes count bytes rather than columns
-c, --characters count characters rather than columns
-s, --spaces break at spaces
-w, --width=WIDTH use WIDTH columns instead of 80
--help display this help and exit
--version output version information and exit
Report fold bugs to bug-coreutils@gnu.org
GNU coreutils home page:
FOLD(1) FOLD(1)
名前
fold - 入力行を指定された幅にあわせて折りたたむ
書式
fold [-bs] [-w WIDTH] [--bytes] [--spaces] [--width=WIDTH] [FILE...]
fold [--help] [--version]
説明
fold は指定されたファイルの内容を標準出力に書き込む。その際、長い行は複
数の短い行に分割する。 FILE が一つも与えられないと標準入力から読み込 む
。また FILE が ‘-’ だった場合には、そのファイルには標準入力が用いられる
。
デフォルトでは、 fold は 80 桁以上の行を分割する。出力は必要な分の行 数
になる。
デ フォルトでは桁数の評価は画面出力のイメージをもとに行われる。したがっ
てタブ文字は複数桁に数えられることが多いだろうし、バックスペース文字 は
桁数を減らすことになり、復帰 (carriage return) 文字は桁数のカウントを 0
に戻すことになる。
オプション
-b, --bytes
桁数ではなくバイト数をカウントする。したがってタブ、バックスペー
ス、復帰の各文字は、他の文字と同じくカウントをひとつだけ増す効果
のみを持つことになる。
-s, --spaces
単語 (word) の境界で行の分割を行う。行に空白 (blank) があれば 、
行の最大長を越えないうち、最も大きな桁にある空白で改行が行われる
。行に空白がひとつもなければ、行の最大長の位置で改行が行われる (
通常の動作と同じ)。
-w WIDTH, --width=WIDTH
行の最大長を WIDTH 桁にする (デフォルトは 80)。
--help 標準出力に使用方法のメッセージを出力して正常終了する。
--version
標準出力にバージョン情報を出力して正常終了する。
注意
プログラムのバグについては bug-textutils@gnu.org に報告してください。
man ページは Ragnar Hojland Espinosa
FOLD(1) User Commands FOLD(1)
NAME
fold - wrap each input line to fit in specified width
SYNOPSIS
fold [OPTION]... [FILE]...
DESCRIPTION
Wrap input lines in each FILE (standard input by default), writing to
standard output.
Mandatory arguments to long options are mandatory for short options
too.
-b, --bytes
count bytes rather than columns
-c, --characters
count characters rather than columns
-s, --spaces
break at spaces
-w, --width=WIDTH
use WIDTH columns instead of 80
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by David MacKenzie.
REPORTING BUGS
Report fold bugs to bug-coreutils@gnu.org
GNU coreutils home page:
コロナウイルスの日ごとの感染者数・死者数をグラフ化してみました。どの国が増加傾向にあり、どの国が終息に向かっているかを視覚化しています。
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa