Last active
December 15, 2015 03:29
-
-
Save waylybaye/5194766 to your computer and use it in GitHub Desktop.
migrate old django `url` templatetag to new style Django 1.5 url
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
find . -name "*.html" -exec sed -i "" -e 's/{% *url *\([a-zA-Z0-9_:]*\)/{% url "\1"/g' '{}' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
find . -name "*.html" -exec sed -i -e 's/{% *url *\([a-zA-Z0-9_:]\+\)/{% url "\1"/g' '{}' \;
for linux