Skip to content

Instantly share code, notes, and snippets.

@brutuscat
Created October 7, 2011 17:55
Show Gist options
  • Save brutuscat/1270928 to your computer and use it in GitHub Desktop.
Save brutuscat/1270928 to your computer and use it in GitHub Desktop.
A bash for loop to rename all files with an extension, recursively.
# 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