SEGMENTS=$(cat latino-segments.txt) #echo $SEGMENTS for SEGMENT in $SEGMENTS; do echo "now downloading >>> $SEGMENT" mkdir latino # this makes a new folder # here we can download all the segments to curl $SEGMENT --output-dir latino # this downloads all the segment files to a folder called latino done