hey @vaporeon_ is there a good way to parallelize the following bash script I'm using to convert FLACs to MP3s?
#!/usr/bin/env bashfind "./${1}" | while read -r file; do case $(file -b "${file}") in 'FLAC '*) echo "${file}" ffmpeg -nostdin -i "${file}" -ab 320k -map_metadata 0 -id3v2_version 3 "${file%flac}mp3" -v 16 ;; *) ;; esacdone
@wallhackio @vaporeon_ either of my recommendations here would be cursed, either using a Makefile or doing heinous a find(1) invocation like find -name '*.flac' -exec sh -c [...] {} + lol
find -name '*.flac' -exec sh -c [...] {} +
A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.