Created
January 11, 2019 20:39
-
-
Save namgk/dfdffd931f76ee12956704ba7a9ba35c to your computer and use it in GitHub Desktop.
Shell script: convert flac to mp3 using ffmpeg
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
#!/bin/bash | |
for flac in * | |
do | |
if [[ $flac == *".flac"* ]]; then | |
filename="${flac%.*}" | |
ffmpeg -i $flac $filename.mp3 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment