Last active
August 29, 2015 14:14
-
-
Save AdelDima/3acaa858554c589a36bd to your computer and use it in GitHub Desktop.
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
//Change File extensions | |
for file in *.php ; do mv $file `echo $file | sed 's/\(.*\.\)php/\1html/'` ; done | |
//Rename all folders and files to lowercase on Linux | |
First, make sure zmv is loaded. | |
autoload -U zmv | |
Also, make sure extendedglob is on: | |
setopt extendedglob | |
Then use: | |
zmv '(**/)(*)~CVS~**/CVS' '${1}${(L)2}' | |
To recursively lowercase files and directories where the name is not CVS. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment