Ish writes: > linecount - commentlinecount = truecount Not just comments...you probably want to exclude blank lines (of which there are many in well written code :) Check out: http://www.allegro.com/software and look for COUNTNB ... or, go straight to: http://www.allegro.com/software/index.html#COUNTNB Sample run & output: :run countnb < foo #Lines: 7230, #Code: 5210, #Blank: 1706, #Comments: 314 -- Stan Sieler [log in to unmask] http://www.allegro.com/sieler.html