Showing posts with label ksh. Show all posts
Showing posts with label ksh. Show all posts

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"