mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 03:08:57 +01:00
Merge pull request #8 from iltempo/sed
sed -r to sed -e for portability
This commit is contained in:
commit
21e4b5f919
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user