Added the basic structure to the script.

This commit is contained in:
Nicolás A. Ortega 2016-04-23 12:36:32 +02:00
parent 7da86ad732
commit 60fdc31e33
No known key found for this signature in database
GPG Key ID: 4825F773B8D44EFF

View File

@ -4,5 +4,19 @@
for f in $@
do
echo "Converting $f to $f.ogg"
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