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