Tips and Tricks
Keep all tips and tricks learned in one place.
Thursday, March 3, 2011
BASH : Pass array as argument
array2=(10 20 30 40 50 60 70 80 90)
function ParseArray
{
for i in ${@}
do
echo $i
done
}
ParseArray ${array2[@]}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment