#!/bin/bash x=$(ls|while read mp3;do echo -n "$mp3|";done) ffmpeg -i "concat:${x::-1}" -acodec copy output.mp3