#!/bin/sh tag="$1" tagValue="$2" mkdir output for f in *.mp3;do ffmpeg -i "$f" -c:v copy -c:a copy -metadata "$tag"="$tagValue" "output/$f.mp3";done