From 0a043dbb7259cc59ac56b31573469f445a7921ed Mon Sep 17 00:00:00 2001 From: mono-b Date: Sun, 18 Dec 2022 23:00:24 -0300 Subject: up --- oggmp3.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 oggmp3.sh (limited to 'oggmp3.sh') 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 -- cgit v1.2.1