Skip to content

Instantly share code, notes, and snippets.

@julien-meichelbeck
Last active December 8, 2016 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julien-meichelbeck/38757eea99b5ea84626db119b44ccfae to your computer and use it in GitHub Desktop.
Save julien-meichelbeck/38757eea99b5ea84626db119b44ccfae to your computer and use it in GitHub Desktop.
Dead code hunter!
awk '/def / {print}' app/helpers/* | awk -F \( '{print $1}' | awk '{print $2}' | while read i ; do num=$(grep -ro $i app/ | wc -l) ; if [ $num -eq 1 ] ; then echo $i ; fi ;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment