Skip to content

Instantly share code, notes, and snippets.

@neoadventist
Created January 16, 2014 02:49
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 neoadventist/8449030 to your computer and use it in GitHub Desktop.
Save neoadventist/8449030 to your computer and use it in GitHub Desktop.
Shell script to convert bootstrap 2.x grid syste, to the one used in bootstrap 3
#!/bin/bash
find . -name "*.html" -print | xargs sed -i 's/span1/col-md-1/g'
find . -name "*.html" -print | xargs sed -i 's/span2/col-md-2/g'
find . -name "*.html" -print | xargs sed -i 's/span3/col-md-3/g'
find . -name "*.html" -print | xargs sed -i 's/span4/col-md-4/g'
find . -name "*.html" -print | xargs sed -i 's/span5/col-md-5/g'
find . -name "*.html" -print | xargs sed -i 's/span6/col-md-6/g'
find . -name "*.html" -print | xargs sed -i 's/span7/col-md-7/g'
find . -name "*.html" -print | xargs sed -i 's/span8/col-md-8/g'
find . -name "*.html" -print | xargs sed -i 's/span9/col-md-9/g'
find . -name "*.html" -print | xargs sed -i 's/span10/col-md-10/g'
find . -name "*.html" -print | xargs sed -i 's/span11/col-md-11/g'
find . -name "*.html" -print | xargs sed -i 's/span12/col-md-12/g'
find . -name "*.html" -print | xargs sed -i 's/row-fluid/row/g'
find . -name "*.html" -print | xargs sed -i 's/container-fluid//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment