summaryrefslogtreecommitdiff
path: root/bin/fixnames
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-02-27 15:53:05 +0100
committerMarc Vertes <mvertes@free.fr>2025-02-27 15:53:05 +0100
commitb02cfe3629a12499f813bf09741bf872f810d9ac (patch)
tree8744acaef7c9a77c0626458df1ac460f2e063383 /bin/fixnames
parent954d9d41fe441f4c8fe2654b1b8af263d20a7bed (diff)
add bin/sync-mp3
Diffstat (limited to 'bin/fixnames')
-rwxr-xr-xbin/fixnames8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/fixnames b/bin/fixnames
index dd1c5b3..d92f322 100755
--- a/bin/fixnames
+++ b/bin/fixnames
@@ -1,8 +1,12 @@
#!/usr/bin/env bash
-# Fix filenames in music library: no spaces or special chars.
+# Fix filenames in music library: no special chars.
-fixname() { echo "$1" | iconv -f utf8 -cs -t ascii//IGNORE; }
+fixname() {
+ echo "$1" |
+ iconv -f utf8 -cs -t ascii//IGNORE |
+ tr -d '?"'
+}
# 1: fix directories
for f in *; do