Last active
October 24, 2015 09:50
-
-
Save upinetree/f69c88b8cbedd4a4f94c to your computer and use it in GitHub Desktop.
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
# http://getbootstrap.com/migration/ | |
patterns=( | |
"row-fluid" | |
"span[1-9]" | |
"offset[1-9]" | |
"brand" | |
"navbarnav" | |
"nav-collapse" | |
"btn-navbar" | |
"hero-unit" | |
"icon-\w*" | |
"btn[' ]" # reject btn-* cases with a last char | |
"btn-mini" | |
"btn-small" | |
"btn-large" | |
"alert-error" | |
"visible-phone" | |
"visible-tablet" | |
"visible-desktop" | |
"hidden-phone" | |
"hidden-tablet" | |
"hidden-desktop" | |
"input-block-lebel" | |
"control-group\.warning" | |
"control-group\.error" | |
"control-group\.success" | |
"control-group" | |
"checkbox\.inline" | |
"radio\.inline" | |
"input-prepend" | |
"input-append" | |
"add-on" | |
"ul\.unstyled" | |
"ul\.inline" | |
"muted" | |
"[' ]label" # reject method and tag cases with a first char | |
"lebal-important" | |
"text-error" | |
"table.error" | |
"bar" | |
"bar-\w*" | |
"accordion" | |
"accordion-group" | |
"accordion-heading" | |
"accordion-body" | |
"accordion-inner") | |
for pattern in "${patterns[@]}" | |
do | |
echo "--- ${pattern} ---" | |
git grep -nw --color=always "${pattern}" app/views | cat | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment