From 17d348db1738a536319de62229c233e764766087 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 24 Feb 2025 11:52:58 +0100 Subject: add mp3 scripts --- bin/fixmp3name | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/fixmp3name (limited to 'bin/fixmp3name') 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" -- cgit v1.2.3