#!/bin/bash if [ z"$1" == z--set ]; then shift year=$1 shift else echo "$0 --set year files" >&2 exit fi for file in "$@" do id3 -y $year "$file" id3v2 -y $year "$file" done