genplaylist (217B)
1 #!/bin/bash 2 3 echo "#EXTM3U" 4 5 while [[ 1 ]]; do 6 read -p 'continue (^c to cancel)?' 7 SELSONG=$(fzf -q Music) 8 printf "#EXTINF:," 9 echo "$SELSONG" | sed 's+Music/++'|sed ' s/_/ /'|sed 's/....$//' 10 echo "$SELSONG" 11 12 done