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
1 changed files with 1 additions and 1 deletions

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