#!/bin/ksh fileName=/etc/passwd while IFS=\: read userName homeDirectory do print "$userName 's home directory is $homeDirectory" done <"$fileName"