Created
February 17, 2017 05:07
-
-
Save vireshas/376c99858c0106b6ebc9dad06c9043a5 to your computer and use it in GitHub Desktop.
rename
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
f=fs.readdirSync(".") | |
for(i=0; i<f.length; i++) {fs.renameSync(f[i], f[i].replace(/ |\'/g, "-"))} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment