Skip to content

Instantly share code, notes, and snippets.

@bizz84
Created May 28, 2016 07:38
Show Gist options
  • Save bizz84/4e887ab8052a3f22f86dd84f65e93660 to your computer and use it in GitHub Desktop.
Save bizz84/4e887ab8052a3f22f86dd84f65e93660 to your computer and use it in GitHub Desktop.
Script to count lines of code (.swift and .h and .m) for XCode projects
#!/bin/bash
# Script to count lines of code (.swift and .h and .m) for XCode projects
find . "(" -name "*.swift" -or -name "*.m" -or -name "*.h" ")" -print0 | xargs -0 wc -l | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment