Created
September 3, 2020 20:43
-
-
Save lordnox/57d8381db05e4437475f194a36074db4 to your computer and use it in GitHub Desktop.
Renames all files from german data DD.MM.YYYY.pdf to YYYY-MM-DD.pdf
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 f in *; set n (echo $f | sed 's/\(.*\)\.\(.*\)\.\(.*\)\.pdf/\3-\2-\1.pdf/'); mv $f $n; end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment