On Thu, May 09, 2002 at 08:31:49AM +0900, Jim Freeze wrote:
> Is there a better way to do this?

Jim, I'm confused.  I thought my little example did it all.  Let me
rephrase it:

for line in $<
  p line # or do whatever you want with it.
end

This handles file(s) specified on the command line, or reads from
standard-in if no file was specified.  Works with pipes, since pipes
are attached to standard-in.  Or am I missing something?

        Wayne