diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2022-07-21 14:33:35 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2022-07-21 14:33:35 -0400 |
| commit | 65c7da88ed1d512fcb926d8c69ce57d295f1d1b4 (patch) | |
| tree | 4f65614cb08a5938d460049b5deb7236e880a231 /.local/bin/booksplit | |
| parent | 8f2810ac20c942f784d0cae1d11812d6ce51c308 (diff) | |
| download | eibhear-65c7da88ed1d512fcb926d8c69ce57d295f1d1b4.tar.gz eibhear-65c7da88ed1d512fcb926d8c69ce57d295f1d1b4.tar.zst eibhear-65c7da88ed1d512fcb926d8c69ce57d295f1d1b4.zip | |
fix #1150
Diffstat (limited to '.local/bin/booksplit')
| -rwxr-xr-x | .local/bin/booksplit | 2 |
1 files changed, 1 insertions, 1 deletions
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")" |
