Counting lines including subdirectories
Cameron Simpson
cs at zip.com.au
Mon Dec 18 06:53:06 UTC 2006
On 18Dec2006 17:14, Matt Arnilo S. Baluyos (Mailing Lists) <matt.baluyos.lists at gmail.com> 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 at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
The type syntax for C is essentially unparsable. - Rob Pike
More information about the fedora-list
mailing list