Last active
November 11, 2015 19:07
-
-
Save ipoval/184cc3c24081cabd23e1 to your computer and use it in GitHub Desktop.
find_unused_partials_in_views.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -e " | |
'`find ./app/views -name _*`' | |
.split | |
.map { |f| f.split('/').last[1..-1][/[^\.]+/] } | |
.each { |f| system( %Q(fgrep -rq #{f} ./app/views/) ) ? nil : p(f) } | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment