Created
December 5, 2022 06:41
-
-
Save lzl124631x/eef75eb99a1f46f648fd60eae14c407f to your computer and use it in GitHub Desktop.
Sony Rename Folder
This file contains 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
# For Sony cameras, the date format for the folders is defined in https://helpguide.sony.net/ilc/1710/v1/en/contents/TP0001629784.html | |
# Here I convert it to yyyy-mm-dd | |
for dir in */; do | |
mv $dir "202${dir:3:1}-${dir:4:2}-${dir:6:2}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment