summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2019-09-10 02:46:02 +0900
committerNico Schottelius <nico@nico-notebook.schottelius.org>2019-09-10 02:50:55 +0900
commitf6c60dc428413bb52311c69d6b39d36f3e2d049b (patch)
treebd12cf0eac52658ba357db60fd6444c283d42dde
parentc2b79a219926baf4431057c3edcf9fb6c2b62d91 (diff)
Use just awk instead of grep + awk + sed combo
-rwxr-xr-xrif-listfriends.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rif-listfriends.sh b/rif-listfriends.sh
index f228be5..4a7e31f 100755
--- a/rif-listfriends.sh
+++ b/rif-listfriends.sh
@@ -1,4 +1,4 @@
#!/bin/sh
# 2019-09-10, Nico Schottelius, Seoul
-gpg --list-keys --with-colons | grep RIF | awk -F: '{ print $10 }' | sed 's/\\x3a/:/'
+gpg --list-keys --with-colons | awk -F: '/RIF/ { print gensub("\\\\x3a", ":", "g", $10) }'