List of love songs on Last.fm, which I'm slowly chipping away in a new streaming service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
265 B

#!/bin/env bash
origin="lovedtracks-jbiason-1710855614.csv"
target="listened.csv"
line=$(shuf $origin | head -n 1)
artist=$(echo $line | cut -d\" -f6 -)
song=$(echo $line | cut -d\" -f14 -)
echo "$artist - $song"
echo $line >> $target
sed -i "/$line/d" $origin