Created
April 2, 2020 17:00
-
-
Save dixonge/7ccab208d7a217c4293d9204164c12a7 to your computer and use it in GitHub Desktop.
Rename folders by moving date from end to beginning of folder name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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