Recently I needed a tool to count the total number of lines of code that I had written in all files in a particular directory. I looked around on the web but didn’t find anything that quite met my specifications. So I ended up writing a script myself to do this task. It turned out to be fairly straightforward but I have put it up on Github, hoping that it will save some time for someone else, who is looking for something similar:
You are welcome to use this code for any non-commercial purposes. Please contact me if you plan to use this commercially.