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.
14 lines
293 B
14 lines
293 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 |
|
|
|
git diff --stat | head -n2
|
|
|