diff options
author | Ache <ache@ache.one> | 2016-10-26 23:24:56 +0200 |
---|---|---|
committer | Ache <ache@ache.one> | 2016-10-26 23:24:56 +0200 |
commit | fc5318171304fc0e2b941b19da52646d19b43a5c (patch) | |
tree | 44f852de4946fd00f16507317f24811592e99b18 /toMp3.sh | |
parent | Add coWifi (diff) |
Add toMp3.sh
Diffstat (limited to 'toMp3.sh')
-rwxr-xr-x | toMp3.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/toMp3.sh b/toMp3.sh new file mode 100755 index 0000000..fb5256a --- /dev/null +++ b/toMp3.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ $# -eq 1 ] ; then + + if expr "$1" : "^.*\.....$" ; then + ffmpeg -i "$1" "${1:0:-4}mp3" + fi + if expr "$1" : "^.*\....$" ; then + ffmpeg -i "$1" "${1:0:-3}mp3" + fi +fi |