summaryrefslogtreecommitdiff
path: root/mp3ogg.sh
diff options
context:
space:
mode:
authormono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-18 23:00:24 -0300
committermono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-18 23:00:24 -0300
commit0a043dbb7259cc59ac56b31573469f445a7921ed (patch)
tree28e87b1b7bbc035fbc467d5a7fc63204960dc247 /mp3ogg.sh
up
Diffstat (limited to 'mp3ogg.sh')
-rwxr-xr-xmp3ogg.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/mp3ogg.sh b/mp3ogg.sh
new file mode 100755
index 0000000..704d754
--- /dev/null
+++ b/mp3ogg.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+for file in *.mp3; do
+ OUTPUT=${file%.mp3}
+ echo $OUTPUT
+ ffmpeg -i "$file" "$OUTPUT.ogg"
+done
+
+printf "\n¿Borrar archivos originales? (s / n) "
+read respuesta
+
+case $respuesta in
+s)
+ rm -f *.mp3 ;;
+esac