Recently I have been working on a fairly large product alongside one other developer and out of interest was keen to discover roughly how many lines of code we had written between us.
The following snippets use the wc command and can be run on the command line to output the total number of new line characters present in all files within a directory recursively.
wc -l `find /path/to/directory/ -type f`
Continue reading “UNIX Count total number of lines in all files recursively”