Didi wrote:
> You can get around this with a pipe :
> 
> $ cat README | wc -l
> 3

That creates an extra cat process.  This is undesirable and
unnecessary.  Search the web for "useless use of cat" for more
explanation.

  http://www.google.com/search?q=useless+use+of+cat+award

Better to simply redirect the input as others have suggested.

  lines=$(wc -l < README)

Bob



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to