Skip to content

Instantly share code, notes, and snippets.

@MaciejGad
Created March 18, 2014 16:05
Show Gist options
  • Save MaciejGad/9623147 to your computer and use it in GitHub Desktop.
Save MaciejGad/9623147 to your computer and use it in GitHub Desktop.
alias longestFiles='find . -name \*.m -not -path "./Pods/*" -exec wc -l {} \; | sort | tail'
alias avgFilesLong="find . -name \*.m -not -path './Pods/*' -exec wc -l {} \; | awk '{ total += \$1; count++} END { print total/count }'"
alias toLongFiles="find . -name \*.m -not -path './Pods/*' -exec wc -l {} \; | sort | awk 'BEGIN{ count = 0; } { if (\$1 > 300){ print \$0; count++}} END { print \" \" count \" files long over 300 lines\" }'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment