Use just awk instead of grep + awk + sed combo

This commit is contained in:
Paul Fertser 2019-09-10 02:46:02 +09:00 committed by Nico Schottelius
parent c2b79a2199
commit f6c60dc428

View file

@ -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) }'