Skip to content

Instantly share code, notes, and snippets.

@hoangtranwork
Created March 5, 2021 08:17
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 hoangtranwork/2000d39d3f7c5a19c3b264fad5d81a2b to your computer and use it in GitHub Desktop.
Save hoangtranwork/2000d39d3f7c5a19c3b264fad5d81a2b to your computer and use it in GitHub Desktop.
# install rename tool
brew install rename
# add -n to dry-run
rename --camelcase -s '2001-01-0' '' -S '-' '' -s 'Eng.' '000.' -s '.Midi' '.mid' MIDI/*
rename --camelcase -s '2001-01-0' '' -S '-' '' -s 'Eng.' '000.' -s '.Pdf' '.pdf' PDF/*
rename --camelcase -s '2001-01-0' '' -S '-' '' -s 'Eng.' '000.' -s '.Mxl' '.mxl' MXL/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment