Skip to content

Instantly share code, notes, and snippets.

@vireshas
Created February 17, 2017 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vireshas/376c99858c0106b6ebc9dad06c9043a5 to your computer and use it in GitHub Desktop.
Save vireshas/376c99858c0106b6ebc9dad06c9043a5 to your computer and use it in GitHub Desktop.
rename
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