Skip to content

Instantly share code, notes, and snippets.

@kberg
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kberg/8102aa43d713570551f9 to your computer and use it in GitHub Desktop.
Save kberg/8102aa43d713570551f9 to your computer and use it in GitHub Desktop.
Script for updating files
for file in *html ; do
echo $file
sed -i .bak 's/\.\.\/dygraph-dev.js/http\:\/\/dygraphs.com\/dygraph-combined-dev\.js/' $file
sed -i .bak 's/\.\.\/src\/extras/http\:\/\/dygraphs.com\/extras/' $file
gist -f index.html $file | sed 's/gist.github.com/bl.ocks.org/' | sed 's/https/http/'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment