#! /bin/sh #export the Internal Field Separator #add : character as delimiter for word splitting export IFS=": " #It could also be #export IFS=$IFS+":" # or #export IFS=$IFS":" while : do if read line then set `echo $line` echo $2 $1 else exit fi done