KORN: Looping through output of command
In bash, I normally use this to read each line of output:
while read line
do
echo $line
done < <(cat /myfile.txt | cut -f1 -d" ")
But this doesn't fly in KSH. I can't find the same thing on any tutorials, doesn't anyone know how to do this in Korn?
|