Thursday, June 6, 2013

KSH read line

#!/bin/ksh

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

No comments:

Post a Comment