Skip to content

Instantly share code, notes, and snippets.

@namgk
Created January 11, 2019 20:39
Show Gist options
  • Save namgk/dfdffd931f76ee12956704ba7a9ba35c to your computer and use it in GitHub Desktop.
Save namgk/dfdffd931f76ee12956704ba7a9ba35c to your computer and use it in GitHub Desktop.
Shell script: convert flac to mp3 using ffmpeg
#!/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