Skip to content

Instantly share code, notes, and snippets.

@prestontimmons
Created April 19, 2012 20:07
Show Gist options
  • Save prestontimmons/2423821 to your computer and use it in GitHub Desktop.
Save prestontimmons/2423821 to your computer and use it in GitHub Desktop.
Replaced {{ STATIC_URL }} with {% static %} using sed
$ find -name "*.html" | xargs sed -i "s/{{ STATIC_URL }}\([^\"]\+\)/{% static '\1' %}/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment