-w
はパディングのためのものです。したがって1
は01
と表示されます(最大値は2 です)。
-s
はセパレータなので、-s ' '
は別の出力を' '
で表します。 -s ''
を使用するとセパレータは使用されませんので、1つの長い番号が と表示されます。
。詳細については、任意のコマンドのための
bash-4.2$ seq -w -s ' ' 1 10
01 02 03 04 05 06 07 08 09 10
bash-4.2$ seq -w -s '' 1 10
01020304050607080910
実行man
または--help
ページ。
bash-4.2$ seq --help
Usage: seq [OPTION]... LAST
or: seq [OPTION]... FIRST LAST
or: seq [OPTION]... FIRST INCREMENT LAST
Print numbers from FIRST to LAST, in steps of INCREMENT.
Mandatory arguments to long options are mandatory for short options too.
-f, --format=FORMAT use printf style floating-point FORMAT
-s, --separator=STRING use STRING to separate numbers (default: \n)
-w, --equal-width equalize width by padding with leading zeroes
--help display this help and exit
--version output version information and exit
これはすべて、 'seq --help' – Aaron