#!/usr/bin/fish for f in *.opus set tmp /tmp/remux.opus ffmpeg -i "$f" -c copy "$tmp" && mv "$tmp" "$f" end