*- On  4 Feb, Miquel van Smoorenburg wrote about "Re: Counting number of lines 
in a text file"
> In article <[EMAIL PROTECTED]>,
> Diego Delgado Lages  <[EMAIL PROTECTED]> 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                                [EMAIL PROTECTED]
Purdue University                   http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------

Reply via email to