linux shell script: split string, put them in an array then loop through them [duplicate] up vote 11 ...
stackoverflow.com