nixos-config/scripts/mpdDup

6 lines
147 B
Plaintext
Raw Permalink Normal View History

2023-04-11 14:43:38 -03:00
#!/bin/sh
mpc playlist -f '%position%\t%file%' |
sort -k 2 |
perl -ne 'm/(.*)\t(.*)/; print "$1\n" if $2 eq $prev; $prev=$2' |
mpc del