Skip to content

Instantly share code, notes, and snippets.

@csskysea
Created June 14, 2022 09:10
Show Gist options
  • Save csskysea/c0441574a833e463e9be1027b102157d to your computer and use it in GitHub Desktop.
Save csskysea/c0441574a833e463e9be1027b102157d to your computer and use it in GitHub Desktop.
convert rsa key file content from multile lines to one lines end with '\n'
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' xxx.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment