Skip to content

Instantly share code, notes, and snippets.

@forestbaker
Created January 14, 2016 16:14
Show Gist options
  • Save forestbaker/7c4abf63ade490a1adf3 to your computer and use it in GitHub Desktop.
Save forestbaker/7c4abf63ade490a1adf3 to your computer and use it in GitHub Desktop.
bulk renaming files just got a whole lot easier...
#!/bin/bash
rename -vs
# usage:
# rename oldfilename newfilename *filepattern
# example:
# rename files in present directory ending with .htm to .html
rename .htm .html *.htm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment