in reply to Re: One liner: remove ssh keys with quotemeta
in thread One liner: remove ssh keys with quotemeta
As per my previous reply, discarding the regex and just using string equality:
$ cat b1.bak ssh-rsa CCCC/DDDD/knMQ== user@host2.f.q.d.n ssh-rsa AAAA/BBBB/kPW+Yi9yZ7Kh0mL/knMQ== user@host.f.q.d.n $ perl -lne 'print unless $_ eq q(ssh-rsa AAAA/BBBB/kPW+Yi9yZ7Kh0mL/kn +MQ== user@host.f.q.d.n)' b1.bak ssh-rsa CCCC/DDDD/knMQ== user@host2.f.q.d.n
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: One liner: remove ssh keys with quotemeta
by Anonymous Monk on Dec 02, 2019 at 21:43 UTC |