#!/bin/dash # Convert directories and subdirectories from other audio formats to opus # Public domain, you probably couldn't even copyright a script this short find ./ -type f \( -iname \*.flac -o -iname \*.mp3 -o -iname \*.ogg -o -iname \*.m4a \) -exec sh -c 'i="{}"; ffmpeg -y -i "$i" "${i%.*}.opus" && rm -f "$i"' \;