Skip to content

Instantly share code, notes, and snippets.

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 dixonge/7ccab208d7a217c4293d9204164c12a7 to your computer and use it in GitHub Desktop.
Save dixonge/7ccab208d7a217c4293d9204164c12a7 to your computer and use it in GitHub Desktop.
Rename folders by moving date from end to beginning of folder name
rename -v -- 's/^(.*)-(\d{4})-(\d{2})-(\d{2})/$2-$3-$4-$1/' *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment