From a276e8d73176ea97a5a6aea4547871798d849f45 Mon Sep 17 00:00:00 2001 From: Alexander Greim Date: Wed, 13 Jul 2016 11:28:36 +0200 Subject: [PATCH] Don't use -r switch on sed as it's not portable --- AAXtoMP3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AAXtoMP3.sh b/AAXtoMP3.sh index b644faa..f3c2fe3 100755 --- a/AAXtoMP3.sh +++ b/AAXtoMP3.sh @@ -7,7 +7,7 @@ while [ $# -gt 0 ]; do ffmpeg -i "$FILE" 2> tmp.txt TITLE=`grep -a -m1 -h -r "title" tmp.txt | head -1 | cut -d: -f2- | xargs` - TITLE=`echo $TITLE | sed -r 's/\(Unabridged\)//' | xargs` + TITLE=`echo $TITLE | sed -e 's/(Unabridged)//' | xargs` ARTIST=`grep -a -m1 -h -r "artist" tmp.txt | head -1 | cut -d: -f2- | xargs` GENRE=`grep -a -m1 -h -r "genre" tmp.txt | head -1 | cut -d: -f2- | xargs` BITRATE=`grep -a -m1 -h -r "bitrate" tmp.txt | head -1 | rev | cut -d: -f 1 | rev | egrep -o [0-9]+ | xargs`