Loading...


Lines of Code

This is just a quick script I wrote that in shell script that counts the size of your project in terms of number of files, codebase size (in KB), and the number of lines. It's useful for a quick glimpse at your productivity on a particular project. The syntax for usage is:

./loc project_folder [extension1 ...]

Example:

~/Sites$ ./loc "Xuan Wu/11" php css html

Output:



		LINES OF CODE
		=================================================
		Project directory: Xuan Wu/11
		Files included: php css html
		-------------------------------------------------
		 Files:      80
		 Size (KB):  153
		 Lines:      4591


Download here (1 KB).