#!/bin/bash for FILE in "$@" do ffmpeg -loglevel quiet -i "${FILE}" -acodec flac "${FILE/m4a}flac" done