#!/bin/bash mkdir ./Converted DIR="./" cd "$DIR" for i in *.*; do ffmpeg -i "$i" "./Converted/${i%.*}.mp3" done