Created
June 3, 2014 16:52
-
-
Save wwqrd/801c2670ac4625d70387 to your computer and use it in GitHub Desktop.
rename with regex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dir['source/stylesheets/*.less'].each { |x| File.rename(x, x.gsub(/source\/stylesheets\/(.*)\.less/, "source/stylesheets/_\\1.\less")) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment