summaryrefslogtreecommitdiff
path: root/lf/lfp
blob: cd21b044dfca116f753765290ae10f136242ef72 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Parse Last.fm URL, print title - artist

while read url
do
	printf '%b\n' "$(printf '%s\n' "$url" | sed 's/+/ /g; s/%/\\\\x/g')" |
	cut -d/ -f5,7 |
	sed 's,^\(.*\)/\(.*\),\2 - \1,'
done