限られたテキスト幅で表示する必要のある長い文字列が与えられた場合、各行が特定のテキスト幅以下の単一行の文字列を複数行の文字列に変換する* nixのコマンドラインツールはありますか?
たとえば、次の文字列が与えられた場合
$ MYSTRING="Call me Ishmael. Some years ago - never mind how long precisely - having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world."
私はこのような形式にしたいと思います:
$ echo $MYSTRING | special-format-command --width=30
Call me Ishmael. Some years ag
o - never mind how long precis
ely - having little or no mone
y in my purse, and nothing par
ticular to interest me on shor
e, I thought I would sail abou
t a little and see the watery
part of the world.
echo $MYSTRING | fold -w 30ているので、-30構文は表示されません倍マニュアルページ?