FOLDER="stream" SEGMENTS=$(ls $FOLDER .ogg) #echo $SEGMENTS for SEGMENT in $SEGMENTS; do echo "
$SEGMENT
" done