dotfiles/.bin/OLD/cdrip2flac
2024-02-14 07:55:58 +01:00

12 lines
212 B
Bash
Executable File

#!/bin/sh
set -xe
alias flac_encode="flac -e --best --delete-input-file"
doas chown sdk /dev/rcd0* /dev/cd0*
cdio cdrip
for i in *.wav;
do
flac_encode "$i" -o "${i%%.wav}.flac";
done
picard *.flac
cdio eject