diff options
author | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-18 23:00:24 -0300 |
---|---|---|
committer | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-18 23:00:24 -0300 |
commit | 0a043dbb7259cc59ac56b31573469f445a7921ed (patch) | |
tree | 28e87b1b7bbc035fbc467d5a7fc63204960dc247 /oggmp3.sh |
up
Diffstat (limited to 'oggmp3.sh')
-rwxr-xr-x | oggmp3.sh | 15 |
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 |