Do something like for each in foo #( or $i) do cat $foo | wc -l #( or $i )
I think you get the idea. If it is one file then do 'cat foo | wc -l'. I am sure there are better ways to do this. If that does not work try with out the Mike Miller On 2/7/06, Jim Beard <[EMAIL PROTECTED]> wrote: > 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 > _______________________________________________ EUGLUG mailing list [email protected] http://www.euglug.org/mailman/listinfo/euglug
