Count the lines of your sourcecode

I use the GNU utilities for Win32 for counting the lines of my sourcecode. You need the unix commands “find”, “wc” and “grep” if you want to filter the files to count in.
After downloading the utilities put it in your path-variable e.g. “C:\tools\UnxUtils\usr\local\wbin”. Open the commandline, change to the directory containing your sourcecode and enter the following command (*.as filters for ActionScript files):
[code]find . -name “*.as” | xargs wc -l[/code]
If you want to exclude directories / packages it would look like this:
[code]find . -name “*.as” | grep -v “regexp for your dir” | xargs wc -l[/code]

Comments are closed.