aboutsummaryrefslogtreecommitdiff
path: root/private_dot_local/bin/executable_cleanup_filenames.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'private_dot_local/bin/executable_cleanup_filenames.zsh')
-rw-r--r--private_dot_local/bin/executable_cleanup_filenames.zsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/private_dot_local/bin/executable_cleanup_filenames.zsh b/private_dot_local/bin/executable_cleanup_filenames.zsh
new file mode 100644
index 0000000..dc41f84
--- /dev/null
+++ b/private_dot_local/bin/executable_cleanup_filenames.zsh
@@ -0,0 +1,7 @@
+#!/bin/zsh
+# Rmove annoying characters from filenames
+# You may need to run multiple times to get everything depending on directory names
+
+for f in **/*\ *; do mv "${f}" "${f// /_}"; done
+for f in **/*\'*; do mv "$f" "${f//'/}"; done
+for f in **/*"*; do mv "$f" "${f//"/}"; done