Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How Many Lines of Code in Source for Chess Engine?

Author: Robert Hyatt

Date: 20:08:14 11/18/02

Go up one level in this thread


On November 18, 2002 at 21:37:28, Tom Likens wrote:

>On November 18, 2002 at 18:23:17, Dieter Buerssner wrote:
>
>>On November 18, 2002 at 18:15:50, Robert Hyatt wrote:
>>
>>
>>>I just did the simple
>>>
>>>cat *.c *.h *.cpp | wc -l
>>
>>Very off topic: I have seen similar things rather regularily, and I often
>>wondered why people like to use cat, when not needed:
>>
>>wc -l *.c *.h *.cpp
>>
>>OTOH,  why not use
>>
>>cat *.c *.h *.cpp | cat | cat | wc -l
>>
>>:-)
>>
>>BTW. On a German keyboard, that pipe sign is actually too incovinient to use, to
>>get ideas, like this.
>>
>>Cheers,
>>Dieter
>
>Actually, I went into overkill mode and wrote a perl script which ignores
>comments and empty lines.  Oh well,  :)
>
>By the way what does the second cat in your last example do?
>
>regards,
>--tom
\

Not a thing.  :)  just copies stdin to stdout...



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.