Re: Counting number of lines in a text file
*- On 4 Feb, Miquel van Smoorenburg wrote about "Re: Counting number of lines in a text file"
> In article <cistron.Pine.LNX.3.96.990203130833.4683A-100000@laranjeiras08.lci.ufrj.br>,
> Diego Delgado Lages <dlages@laranjeiras08.lci.ufrj.br> wrote:
>>
>>cat file-name | wc -l
>
> I always wonder why people insist on doing
>
> cat file | otherprogram
>
> instead of just
>
> otherprogram < file
>
Or why not
otherprogram file
if otherprogram can take a file name on its command line,
as in
wc -l file
> 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. Oh well
> I need coffee I think
>
> Mike.
--
Brian
---------------------------------------------------------------------
"Never criticize anybody until you have walked a mile in their shoes,
because by that time you will be a mile away and have their shoes."
- unknown
Mechanical Engineering bservis@usa.net
Purdue University http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------
Reply to: