Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shageman/11191030 to your computer and use it in GitHub Desktop.
Save shageman/11191030 to your computer and use it in GitHub Desktop.
#Sort the Ruby files in your project by number of has_many
ack " has_many " -c | awk -F ":" '{print $2,$1}' | grep -v "0" | sort -rn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment