From 65c7da88ed1d512fcb926d8c69ce57d295f1d1b4 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 21 Jul 2022 14:33:35 -0400 Subject: [PATCH] fix #1150 --- .local/bin/booksplit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/booksplit b/.local/bin/booksplit index 69e4f36..a6845f7 100755 --- a/.local/bin/booksplit +++ b/.local/bin/booksplit @@ -9,7 +9,7 @@ echo "Enter the artist/author:"; read -r author echo "Enter the publication year:"; read -r year inputaudio="$1" -ext="${1#*.}" +ext="${1##*.}" # Get a safe file name from the book. escbook="$(echo "$booktitle" | iconv -cf UTF-8 -t ASCII//TRANSLIT | tr -d '[:punct:]' | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | sed "s/-\+/-/g;s/\(^-\|-\$\)//g")"