aboutsummaryrefslogtreecommitdiff
path: root/toMp3.sh
diff options
context:
space:
mode:
authorAche <ache@ache.one>2016-10-26 23:24:56 +0200
committerAche <ache@ache.one>2016-10-26 23:24:56 +0200
commitfc5318171304fc0e2b941b19da52646d19b43a5c (patch)
tree44f852de4946fd00f16507317f24811592e99b18 /toMp3.sh
parentAdd coWifi (diff)
Add toMp3.sh
Diffstat (limited to 'toMp3.sh')
-rwxr-xr-xtoMp3.sh11
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