Re: Counting number of lines in a text file
> I always wonder why people insist on doing
>
> cat file | otherprogram
>
> instead of just
>
> otherprogram < file
Don't know...
> Which is exactly the same, but saves processing time. Even DOS people
> do this, while DOS doesn't even multitask .. cat file | otherprogram
> is the same as cat file > tmpfile; otherprogram < tmpfile.
You mean _on DOS_
`cat file | otherprogram`
is the same as
`cat file > tmpfile; otherprogram < tmpfile`
Right?
It's certainly not the same on Unix (try it with a 10 MB file).
Reply to: