Skip to content

Instantly share code, notes, and snippets.

Avatar

Julien Meichelbeck julien-meichelbeck

View GitHub Profile
@julien-meichelbeck
julien-meichelbeck / awk
Last active Dec 8, 2016
Dead code hunter!
View awk
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