23 lines
477 B
Bash
Executable File
23 lines
477 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2016 Nicolás A. Ortega
|
|
# License: GNU GPLv3
|
|
|
|
for f in $@
|
|
do
|
|
OUTFILE=${f:0:-4}
|
|
echo "Convert $f to $OUTFILE.ogg"
|
|
while true
|
|
do
|
|
read -p "Do you wish to continue? (y/n) " ANSWER
|
|
case $ANSWER in
|
|
[yY]* ) echo "Convert file."
|
|
break;;
|
|
|
|
[nN]* ) echo "Skipped file $f"
|
|
break;;
|
|
|
|
* ) echo "Please enter a valid option."
|
|
esac
|
|
done
|
|
done
|