On 6/7/06, John Oliver <[EMAIL PROTECTED]> wrote:
It turned out that I needed to use "while read line", like:
cat /tmp/testlog | while read line;
do echo "${line}";
done
Yes. If you hadn't discovered that by now, I was ready to suggest it.
Except that you don't need to use "cat". Nor do you need to quote
"${line}"
while read line; do echo ${line};done < /tmp/testlog
is the one-liner. Separate into multiple lines to taste, especially
if there is a lot of stuff bracketed by "do . . . done".
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list