Shell Script: Split string

Greetings,

I have a long string like so:

STRING="233445 4504505 2828287 373349 2348445 560950 238920"

I would like to split this string up into an array of some sort then loop through the array and echo each value.

Thank you very much.
killroy03Asked:
Who is Participating?
 
bobgunzelCommented:
for i in $STRING
do
echo $i
done
0
 
killroy03Author Commented:
You see, this is why I LOVE EE!

Thanks a ton Bob!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.