Skip to content

Instantly share code, notes, and snippets.

@yoshiya54
Last active November 23, 2016 15:38
Show Gist options
  • Save yoshiya54/5d76776a2a7cbb936159bff849172583 to your computer and use it in GitHub Desktop.
Save yoshiya54/5d76776a2a7cbb936159bff849172583 to your computer and use it in GitHub Desktop.
bashで引数を配列処理する ref: http://qiita.com/yoshiya64/items/8b9c724e9688f4b839c4
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