Created
October 7, 2011 17:55
-
-
Save brutuscat/1270928 to your computer and use it in GitHub Desktop.
A bash for loop to rename all files with an extension, recursively.
This file contains 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
# Replace the first ".less" with your extension and ".css.less" with the desired one | |
for i in `find . -type f`; do mv "$i" `basename -s .less "$i"`.css.less ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment