diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-02-27 15:53:05 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-02-27 15:53:05 +0100 |
| commit | b02cfe3629a12499f813bf09741bf872f810d9ac (patch) | |
| tree | 8744acaef7c9a77c0626458df1ac460f2e063383 /bin | |
| parent | 954d9d41fe441f4c8fe2654b1b8af263d20a7bed (diff) | |
add bin/sync-mp3
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/fixnames | 8 | ||||
| -rwxr-xr-x | bin/sync-mp3 | 2 |
2 files changed, 8 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 diff --git a/bin/sync-mp3 b/bin/sync-mp3 new file mode 100755 index 0000000..baab204 --- /dev/null +++ b/bin/sync-mp3 @@ -0,0 +1,2 @@ +#!/bin/sh +rsync -hvrltD --delete -@ 1 --stats --info=progress2 marc@192.168.1.197:Music/mp3/ . |
