Saturday, December 19, 2020

Bash Script for converting APE to FLAC

This is a little script I use for batch converting ape files in a folder into flac.

 

#!/bin/bash
for f in *.ape
do
    mac "$f"  "${f%.*ape}.wav" -d && flac --best "${f%.*ape}.wav" && rm "${f%.*ape}.wav"
done
 

No comments: