<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 9:04 AM, <span dir="ltr"><<a href="mailto:Valdis.Kletnieks@vt.edu" target="_blank">Valdis.Kletnieks@vt.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Fri, 28 Mar 2014 08:49:55 +0530, Kaushal Shriyan said:<br>
<br>
> How many lines of code and files and directories in the latest stable<br>
> kernel 3.13.7?<br>
<br>
</div>find, xargs, and wc are your friends. For Linus's 'git' tree (3.14-rc8-ish):<br>
<br>
[/usr/src/linux] find * -type d | wc -l<br>
2947<br>
[/usr/src/linux] find * -type f | wc -l<br>
46016<br>
[/usr/src/linux] find * -type f -name '*.[ch]' | xargs cat | wc -l<br>
16644991<br>
<br>
(Ignoring of course that there's other types of lines of code besides *.c<br>
and *.h. If you don't like it, do your own find command :)<br>
<br>
<br></blockquote><div><br></div><div>Thanks Valdis for the explanation </div></div><br></div></div>