String Manipulation

Split String

s='hello:world:!'
IFS=":"
array=($s)

echo ${array[1]}  # world

for x in ${array[*]}; do
    echo $x
done

Sources: