5

User:Ktvoelker/mpc-del-cur

view full story
linux-howto

http://aerosuidae.net – New pageThis script removes the currently-playing song from the mpd playlist. #!/usr/bin/env perl my $m = `mpc`; if ($m =~ /\[playing\] #([0-9]+)/) { my $n = $1; system 'mpc', 'del', $n; } (Software)