I was advised to use the ksh built-in read line to read in a really huge
file. Well, it turns out, probably because ksh is an interpreter, that
read line, at least as demonstrated by the following script
#!/bin/ksh
exec 0< "db/s.p"
while read line
do
print $line >> /dev/null [echo is actually a hair faster]
done
takes way, way longer than cat db/s.p. Consequently, unless someone can
give me a very fast way to use read line, I am going to stick with my
kludge of splitting s.p into 50,000 line pieces and processing them in
order.
--
Robert B. Peirce, Venetia, PA 724-941-6883
bob AT peirce-family.com [Mac]
rbp AT cooksonpeirce.com [Office]


|