Subj : Re: Getting the number of lines in a file To : comp.os.linux From : ERACC Date : Fri Jul 23 2004 11:34 am On Fri, 23 Jul 2004 12:51:18 +0000, Joshua Beall wrote: > Hi All, > > What I really want to do is get the cumulative number of lines in many > files, recursing into subdirectories. I want to see how many lines of code > are in the PHP project I am working on right now. I don't know of any quick > way of doing this, and I have even thought about writing a quick PHP script > that will do it for me, but I don't want to do that if there is a bit of > shell wizardry that would be able to accomplish this for me. > > I am running Mandrake 9.0 kernel 2.4.19-16mdk, and I generally use bash, > though I have tcsh, zsh, ksh, and csh installed as well (perhaps a few > others I'm not aware of; I think I installed all the shells available in > MDK9.0) > > Thanks for any ideas! A Very Good Idea - search Google. I just found the answer there using the words - count number lines file - so you can too. Surely you can figure it out after that? If not come back and say so. Gene (e-mail: gene \a\t eracc \d\o\t com) -- Linux era4.eracc.UUCP 2.4.22-28mdkenterprise i686 10:31:41 up 146 days, 4:29, 12 users, load average: 0.07, 0.09, 0.03 ERA Computer Consulting - http://www.eracc.com/ eCS, OS/2, Mandrake GNU/Linux, OpenServer & UnixWare resellers .