Skip to content

Instantly share code, notes, and snippets.

@nkezhaya
Created June 15, 2020 18:40
Show Gist options
  • Select an option

  • Save nkezhaya/4492a87e149d70c7cb7e535624c4d340 to your computer and use it in GitHub Desktop.

Select an option

Save nkezhaya/4492a87e149d70c7cb7e535624c4d340 to your computer and use it in GitHub Desktop.
find src/views -name '*.html' -type f -exec ruby -pi.bak -e 'gsub(/\bcol-(\w{2,4}-)?(\d+)\b/){"col-#{Regexp.last_match[1]}#{Integer(Regexp.last_match[2])*2}"}' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment