Skip to content

Instantly share code, notes, and snippets.

@sk22
Created July 19, 2020 13:57
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 sk22/2a69735b973fa9994ec0a56c7cb10f28 to your computer and use it in GitHub Desktop.
Save sk22/2a69735b973fa9994ec0a56c7cb10f28 to your computer and use it in GitHub Desktop.
prename -n 's/\d{5}IMG_\d{5}_BURST(\d{8})(\d{6})\d{3}_COVER/IMG_$1_$2/' **/*
# 00000IMG_00000_BURST20190829132824951_COVER.jpg -> IMG_20190829_132824.jpg
# remove -n to apply changes
# requires perl rename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment