shell/+mpd: fix sed command in mpd-recent-played

This commit is contained in:
Henrik Lissner 2017-09-05 19:11:13 +02:00
parent 0173319add
commit 53a4ec1580
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -6,5 +6,5 @@
# mpc clear # mpc clear
# mpc add $(mpc-recent-played | cut -f2) # mpc add $(mpc-recent-played | cut -f2)
grep played "$HOME/.config/mpd/mpd.log" | sed 's/ : player: played "(.+)"/\t\1/g' | tail -n${1:-20} grep played "$HOME/.config/mpd/mpd.log" | sed -r 's/ : player: played "(.+)"/\t\1/g' | tail -n${1:-20}