Reputation: 5172
I'm working on a script that requires me to have an array with a multi-word value in it. This needs to be treated on its own.
all=( "test phrase" 4 11 13 )
for i in ${all@]}; do
echo $i
done
I get out of it:
test
phrase
4
11
13
and I need to get:
test phrase
4
11
13
How can I do this?
Upvotes: 3
Views: 945