Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
XIII
4 years agoSuper Contributor
[46] How can I use a newline character in a field value?
In the past I created some multi-line fields for SSH keys after reading this tip on this forum.
I now want to update one of those keys using op item edit "K" 'private key=X\nY' .
However then ...
XIII
4 years agoSuper Contributor
Ah, it does work when doing it in a script:
op item edit "K" "private key=-----BEGIN OPENSSH PRIVATE KEY-----
X
Y
-----END OPENSSH PRIVATE KEY-----"
Still would like to know how to do it on the command line though.