Skip to content

Instantly share code, notes, and snippets.

@DarkAnHell
DarkAnHell / rename_nonascii.sh
Created September 14, 2025 15:02
Recursively rename all files and folders to have only ascii characters
#!/usr/bin/env bash
#
# rename_nonascii.sh <path>
# Recursively rename files and folders in the given path,
# replacing non-ASCII characters with '-'
#
set -euo pipefail
if [[ $# -ne 1 ]]; then

Keybase proof

I hereby claim:

  • I am darkanhell on github.
  • I am darkanhell (https://keybase.io/darkanhell) on keybase.
  • I have a public key ASCrj07s5f8xbdyAeWpRtC495SOCqNblRNYj--Gl04pSYwo

To claim this, I am signing this object: