From dc4a6f87347440e310b739465ec6e2397c742af0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 24 Nov 2020 03:08:20 +0100 Subject: Move dz/*, lf/* into root directory They are differentiated by the dz/lf prefix anyway. --- lfp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 lfp (limited to 'lfp') diff --git a/lfp b/lfp new file mode 100755 index 0000000..cd21b04 --- /dev/null +++ b/lfp @@ -0,0 +1,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 -- cgit v1.2.3