summaryrefslogtreecommitdiff
path: root/bin/fixmp3name
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-02-24 11:52:58 +0100
committerMarc Vertes <mvertes@free.fr>2025-02-24 11:52:58 +0100
commit17d348db1738a536319de62229c233e764766087 (patch)
tree19c57dfb03b05c9a814825d64da73ae253c19bbc /bin/fixmp3name
parent9921f42676ea8361ea3d14bc1c9c5e184dfe5e07 (diff)
add mp3 scripts
Diffstat (limited to 'bin/fixmp3name')
-rwxr-xr-xbin/fixmp3name11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/fixmp3name b/bin/fixmp3name
new file mode 100755
index 0000000..f2f4053
--- /dev/null
+++ b/bin/fixmp3name
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case $1 in
+*.flac.mp3) n="${1%.flac.mp3}.mp3" ;;
+*.m4a.mp3) n="${1%.m4a.mp3}.mp3" ;;
+*) n="$1" ;;
+esac
+
+[ "$1" = "$n" ] && exit
+echo "$n"
+mv "$1" "$n"