Created
March 9, 2020 10:56
-
-
Save sepastian/1157d3bc13f2bd3069f7d2f0bccb61f2 to your computer and use it in GitHub Desktop.
Unzip files, convert filenames from (win) cp-1252 to utf-8
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
#!/bin/bash | |
set -euo pipefail | |
unzip file.zip | |
# Show what would be renamed. | |
convmv -f cp-1521 -t urf-8 * | |
# Do the renaming. | |
convmv -f cp-1521 -t urf-8 --notest * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment