#!/bin/bash FLAC=$1 [ -e "$FLAC" ] || exit PROPERTIES=$(sed -e's/\.flac$/.properties/' <<< "$FLAC") echo $FLAC mbz --flac "$FLAC" > "$PROPERTIES"