1 2 3 4 5 6 7 8 9 10 11
#! /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