Skip to content

Instantly share code, notes, and snippets.

@lmj0011
Last active February 11, 2019 12:25
Show Gist options
  • Save lmj0011/860bf219573217cb97ac609afe38890e to your computer and use it in GitHub Desktop.
Save lmj0011/860bf219573217cb97ac609afe38890e to your computer and use it in GitHub Desktop.
slugify filenames in the current directory
# c/p this into current directory
# note - does not remove special chars
rename -v 'y/A-Z/a-z/' * && rename -v 's/ /-/g' *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment