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