From 5f3200afd34b1b0ac0a809f3270e1117659957e5 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Mon, 13 Feb 2023 10:45:57 +0100 Subject: Split functionality of menu-contacts into separate script for CLI --- bin/list-contacts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/list-contacts (limited to 'bin/list-contacts') diff --git a/bin/list-contacts b/bin/list-contacts new file mode 100755 index 0000000..1492773 --- /dev/null +++ b/bin/list-contacts @@ -0,0 +1,7 @@ +#!/bin/sh + +# Search in contact list built by khard, outputs the search results as +# NAME
+khard email --remove-first-line --parsable $@ \ + | cut -f 1,2 \ + | awk -F "\t" '{printf "%s <%s>\n", $2, $1}' -- cgit v1.2.3