Skip to content

Instantly share code, notes, and snippets.

@srveit
Created October 17, 2010 21:54
Show Gist options
  • Save srveit/631337 to your computer and use it in GitHub Desktop.
Save srveit/631337 to your computer and use it in GitHub Desktop.
Replaces occurrences of template. with view. in view specs
for f in `grep -nH -rl template --include=*.rb .`
do sed -e 's/template\./view./' -i $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment