- Navigating to you project folder, run(python project)
find . -name "*.py" |xargs grep -v "^$"|wc -l
- If it is a Objective-C project, the the script should look like this:
find . -name "*.m" -or -name "*.h" |xargs grep -v "^$"|wc -l
- If it is a Swift project, the the script should look like this:
find . -name "*.swift" |xargs grep -v "^$"|wc -l
:grep -v “^$”: ignore blank lines