- 履歴一覧
- 差分 を表示
- 現在との差分 を表示
- 履歴 を表示
- シェル/スペース区切りを分割する へ行く。
- 1 (2013-12-06 (金) 09:32:40)
- 2 (2013-12-06 (金) 18:33:49)
*キーワード [#i0701e8b] -set -shift *概要 [#y0057c93] スペース区切りの文字列を分割します。 *方法 [#h137563c] set `echo i1 i2 i3` while [ $# -ne 0 ] do echo $1 shift done *解説 [#ac13af9a] $1 や shift は引数を扱うためのものですが set を使うことで引数の代わりにすることができます。 *参考 [#b0696fa9] -[[bourne shellのTips - web-cahier.com>http://www.web-cahier.com/log/2012/01/bourne-shelltips.html]]