Bash tip: Convert whole playlist
Here is a little Bash tip as english translation of an article by the german partner radio frei²: Converting all audio files within a M3U playlist in a fast and easy way. In the following example we want to decode all FLAC files into WAV for burning an audio CD:
while read line; do flac -d "$line"; done < PLAYLIST.M3U
The file PLAYLIST.M3U is in the so-called "simple M3U format". That means, each line of the playlist contains exactly one audio file name.