Re: Counting lines including subdirectories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18Dec2006 17:14, Matt Arnilo S. Baluyos (Mailing Lists) <matt.baluyos.lists@xxxxxxxxx> wrote:
| Would anyone know of a one-liner that allows you to count the number
| of lines including the subdirectories? I'm trying to find out how many
| lines of code there are in a web application.
| 
| It would also be better if it has an option to exclude specific file 
| extensions.

find ...various-options... -exec cat {} ';' | wc -l

See "man find" for details.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

The type syntax for C is essentially unparsable. - Rob Pike


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux