How to use "grep" to get the gpg key fingerprint values?
3
votes
4
answers
1687
views
If the output of
gpg --list-secret-keys --keyid-format=long
is
pub rsa3072 2023-01-13 [SC] [expires: 2025-01-12]
D8524A558964E86Cxxxx93111270xxxxxxxx7A74
uid [ultimate] demo(demo)
sub rsa3072 2023-01-13 [E] [expires: 2025-01-12]
How can I grep only "D8524A558964E86Cxxxx93111270xxxxxxxx7A74" from the output? I am using Linux.
Asked by devlooper
(31 rep)
Apr 25, 2023, 08:35 AM
Last activity: Sep 15, 2023, 11:00 AM
Last activity: Sep 15, 2023, 11:00 AM