Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.