summaryrefslogtreecommitdiff
path: root/oggmp3.sh
diff options
context:
space:
mode:
Diffstat (limited to 'oggmp3.sh')
-rwxr-xr-xoggmp3.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/oggmp3.sh b/oggmp3.sh
new file mode 100755
index 0000000..b4e8bfa
--- /dev/null
+++ b/oggmp3.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+for file in *.ogg; do
+ OUTPUT=${file%.ogg}
+ echo $OUTPUT
+ ffmpeg -i "$file" "$OUTPUT.mp3"
+done
+
+printf "\n¿Borrar archivos originales? (s / n) "
+read respuesta
+if [ $respuesta = "s" ] ; then
+ rm -f *.ogg
+else
+ echo > /dev/null
+fi