Tuesday, June 22, 2010

How to count source lines of code in Linux

You can use debian package sloccount for SLOC:
deby:~# apt-get install sloccount
  ...
user1@deby:~/devenv/trunk$ sloccount src/ | grep ^python
python:          31 (100.00%)
Read more about sloccount here.

No comments :

Post a Comment