From 6874c634cbca5761a6a8630f07675852f7efba31 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= <john@ankarstrom.se>
Date: Tue, 24 Nov 2020 03:05:27 +0100
Subject: lfu: Rename to lfq, make into a more general query tool

lfu was not very UNIX-like.  Now sim uses ep (edit pipe) to choose
the right match.
---
 sim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'sim')

diff --git a/sim b/sim
index 2502702..df04473 100755
--- a/sim
+++ b/sim
@@ -2,7 +2,7 @@
 
 # Get similar songs
 
-lfu "$@" |
+lfq "$@" | ep | head -1 |
 xargs lfs |
 lfp |
 sed 's/\(.*\) - \(.*\)/track:"\1" artist:"\2"/' |
-- 
cgit v1.2.3