This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Convert all .ogg files in current folder to mp3, and move the original .ogg file into own folder named "ogg". | |
# Stop on error (-e). | |
# Debug each command (-x). | |
set -ex | |
# Make sure there is a ogg folder available. | |
if [[ ! -d "ogg" ]]; then | |
mkdir ogg |
OlderNewer