以下の内容はhttps://shuzo-kino.hateblo.jp/entry/2015/01/26/235501より取得しました。


bashのfor文で規則性のある文字列をつくる

bashのfor文では、多重配列っぽいものを渡すことができます。
これを利用すれば規則性のある文字列をつくることが可能です。

実際のところ

$ for n in {1..10}{a..f}; do printf "%03s\n" $n; done

というコマンドは

01a
01b
01c
01d
01e
01f
02a
02b
02c
02d
02e
02f
03a
03b
...
09d
09e
09f
10a
10b
10c
10d
10e
10f

となります。




以上の内容はhttps://shuzo-kino.hateblo.jp/entry/2015/01/26/235501より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14