Skip to content

Instantly share code, notes, and snippets.

@sepastian
Created March 9, 2020 10:56
Show Gist options
  • Save sepastian/1157d3bc13f2bd3069f7d2f0bccb61f2 to your computer and use it in GitHub Desktop.
Save sepastian/1157d3bc13f2bd3069f7d2f0bccb61f2 to your computer and use it in GitHub Desktop.
Unzip files, convert filenames from (win) cp-1252 to utf-8
#!/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