nixos/modules/programs/scripts/remove_special_characters.sh

6 lines
127 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2024-03-18 22:37:42 +01:00
find . -print | while read file; do
file_clean=${file//[ ()&\'\,]/_}
mv "$file" "$file_clean"
done