FOLDER="kiri" SEGMENTS=$(ls $FOLDER/seg*.ogg) #echo $SEGMENTS for SEGMENT in $SEGMENTS; do echo "
$SEGMENT
" done