Subj : Re: Getting the number of lines in a file To : alt.os.linux,comp.os.linux,alt.os.linux.mandrake From : R.F. Pels Date : Fri Jul 23 2004 10:35 pm John Cholewa wrote: > find . -type f | sed 's/$/"/;s/^/"/' | xargs wc -l > > Done this way, "wc" is given all the files on the same line, and when that > happens, wc gives a total. This may puke if you have a few thousand or > more files in your project, though. Also, the "sed" stuff is there to put > quotes around the file names, just in case there are spaces in any of > them. find . -type f -print0 | xargs -0 wc -l -- Ruurd ..o. ...o ooo .