There is a unix command called WC (word count) if you say wc -l *.c , you will get line counts for all the files
Jim Beard <[EMAIL PROTECTED]> writes: % Hey all! % % I got a shell scripting question for the collective masses. I want % to know the total number of lines in a programming project I'm % working on. I figured the fastest way (If I knew the syntax) would % likely be to type in a big archaic shell script command that would % concatonate all of the files together then tell me how many lines are % in the new file. Does anyone know a better way? Does anyone know % syntax for this task? % % Jim % _______________________________________________ % EUGLUG mailing list % [email protected] % http://www.euglug.org/mailman/listinfo/euglug ----- John Sechrest . Helping people use . computers and the Internet . more effectively . . Internet: [EMAIL PROTECTED] . . http://www.peak.org/~sechrest _______________________________________________ EUGLUG mailing list [email protected] http://www.euglug.org/mailman/listinfo/euglug
