Skip to content

Instantly share code, notes, and snippets.

@caius
Created July 1, 2009 11:53
Show Gist options
  • Save caius/138739 to your computer and use it in GitHub Desktop.
Save caius/138739 to your computer and use it in GitHub Desktop.
# Lists all require's in a rails project, excluding vendor/*
egrep -r "require (['\"])\w+\\1" `for i in \`ls\`; do if [[ "$i" != "vendor" ]]; then echo -n "$i " ; fi ; done` | sed "s/^.*require //g" | sed "s/['\"]//g" | awk '{ print $1 }' | grep -v rubygems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment