rejon on Nostr: Here is how I got this to work: $ echo -e "Testing\nNewlines \n here \r" | xargs -0 ...
Here is how I got this to work:
$ echo -e "Testing\nNewlines \n here \r" | xargs -0 algia post
Testing
Newlines
here
Published at
2023-06-07 04:30:12Event JSON
{
"id": "5ae942267ed6e954f4fb2244315eac365b5d2d1dfc6e688fa1a6be318620eb44",
"pubkey": "df57b4986a2c659965c3df95ca3fea3533a207b09bf2c55a70d406c7d049124f",
"created_at": 1686105012,
"kind": 1,
"tags": [
[
"e",
"a0f9c7a0f6c2d7a3a17d0e319ed11a869c643bcf61ca3d50aed634455d97b494",
"wss://nos.lol/",
"mention"
]
],
"content": "Here is how I got this to work:\n\n$ echo -e \"Testing\\nNewlines \\n here \\r\" | xargs -0 algia post\n\nnostr:nevent1qqs2p7w85rmv94ar597suvv76ydgd8ry808krj3a2zhdvdz9tktmf9qpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszrnhwden5te0dehhxtnvdakz7qsrhhm",
"sig": "7da1462d54abf34bcc1b07f8a37ee4ff9d02a172e2af02901b7d36476610b7c0bcfe434517f3ff2bad63d3b37ffdd3835ea1a4ef420255159da427309c0bf8b7"
}