OLDIFS=$IFS # save the old splitting char IFS=',' # define the splitting char for i in c,3 e,5 do set -- $i echo $1 and $2 done IFS=$OLDIFS # reset to original char ----------------------------------------------- RESULT: c and 3 e and 5