#! /bin/bash tmp=$(mktemp) scrap > $tmp for ((i=0; i < $( cat $tmp | wc -l); i++)) do out=$(awk -v n=$i 'NR == n {print $0}' $tmp) spotdl --output /home/dt/media/playlist/down --output-format mp3 --lyrics-provider genius --dt 16 --st 16 "${out}" done