Last active
November 23, 2016 15:38
-
-
Save yoshiya54/5d76776a2a7cbb936159bff849172583 to your computer and use it in GitHub Desktop.
bashで引数を配列処理する ref: http://qiita.com/yoshiya64/items/8b9c724e9688f4b839c4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare -a array | |
for a in $@;do | |
array=("${array[@]}" $a) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment