blog/content/about/random-scripts.md
2021-06-17 22:33:51 -05:00

257 B

+++ title = "random scripts" +++

convert a bunch of flacs to mp3

#!/bin/bash
function flac2mp3() { ffmpeg -y -i "$1" -acodec libmp3lame "$(basename "$1")".mp3; }
export -f flac2mp3 # only works in bash
fd "\.flac$" | parallel flac2mp3