Last active
June 21, 2024 12:00
-
-
Save pepoviola/6c524769ecbcd15039fe to your computer and use it in GitHub Desktop.
convert new lines into \n for use ssh key in json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed ':a;N;$!ba;s/\n/\\n/g' my_key.pem | |
or in vi | |
:%s/\n/\\n/ | |
https://tickets.opscode.com/browse/CHEF-3540 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!