Skip to content

Instantly share code, notes, and snippets.

@lordnox
Created September 3, 2020 20:43
Show Gist options
  • Save lordnox/57d8381db05e4437475f194a36074db4 to your computer and use it in GitHub Desktop.
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
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