Skip to content

Instantly share code, notes, and snippets.

@rthbound
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rthbound/5da9ebe4f31bb61fd602 to your computer and use it in GitHub Desktop.
Save rthbound/5da9ebe4f31bb61fd602 to your computer and use it in GitHub Desktop.
making markup changes and css additions to a bunch of projects at once
while IFS="," read -r downcased titleized; do
cd What${titleized}IsIt
git checkout .
sed -i "s/center/not-center/g" ./index.html
sed -i 's/document.getElementById("time").innerHTML = (date + "<br\/>" + time + ":" + s);/document.getElementById("time").innerHTML = ("<div class='pull-left'>" + date + "<\/div><div class='pull-right'>" + time + ":" + s + "<\/div>");/g' ./assets/script.js
cat ../style.css >> assets/style.css
git commit -am "Adds markup and css for pull-left and pull-right classes"
git push -u origin gh-pages
cd ..
done < generation.csv
while IFS="," read -r downcased titleized; do
cd What${titleized}IsIt
git checkout .
sed -i '/background-repeat-x: no-repeat;/d' assets/style.css
sed -i 's/background-repeat-y: no-repeat;/background-repeat: no-repeat no-repeat;/g' assets/style.css
sed -i 's/27%/30%/g' assets/style.css
git commit -am "Fixes fullscreen background repeating on firefox - thank ekem for pointing that out"
git push -u origin gh-pages
cd ..
done < generation.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment