Skip to content

Instantly share code, notes, and snippets.

@bruth
Last active December 22, 2015 07:18
Show Gist options
  • Save bruth/6436966 to your computer and use it in GitHub Desktop.
Save bruth/6436966 to your computer and use it in GitHub Desktop.
# Replace pre-Django 1.4 unquoted url syntax {% url ... %} (on Mac OS X)
egrep -l -r '{% url [^" ]+' . | grep html$ | xargs sed -E -i '' 's/{% url ([^" ]+)/{% url "\1"/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment