From f6c60dc428413bb52311c69d6b39d36f3e2d049b Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Tue, 10 Sep 2019 02:46:02 +0900 Subject: Use just awk instead of grep + awk + sed combo --- rif-listfriends.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }' -- cgit v1.2.3