On 28Dec2016 16:34, JD <jd1008@xxxxxxxxx> wrote:
Jon LaBadie introduced me to:
exec 5< .kshrc
exec 6< .profile
while read -u 5 one && read -u 6 two; do
echo $one
echo $two
done
Who wants a -u? You can just redirect into a read you know...
while read one <&5 && read two <&6; do
I suspect -u isn't very portable, and it is unnecessary anyway. (Looks at "man
ksh"; maybe it is portable!) But still, not needed. One can use the universally
recognised and understood redirection syntax instead of a read-specific special
option.
Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx