Code to get total number of lines in project

Command to find out how many lines of code you wrote in a folder tree… Following example is for ObjC iOS projects.

find . -name "*.[h|m]" | xargs cat | wc -l