Justine Smithies on Nostr: Ok #FreeBSD folk I'm having a wee issue converting a sed line in one of my scripts ...
Ok #FreeBSD folk I'm having a wee issue converting a sed line in one of my scripts from Linux to FreeBSD. The command in question is sed -z 's/\n/\\n/g' but in FreeBSD there is no -z option.
What would be a work around or similar ?
Thanks in advance.
Published at
2025-04-02 21:01:52Event JSON
{
"id": "65fc7a025165912472451815c73362b830703152c88b469d64a34fd25adc0142",
"pubkey": "76a830addb47903a3c8093772cd4b03d936ae4b4bb80810d42005249c84b517e",
"created_at": 1743627712,
"kind": 1,
"tags": [
[
"t",
"freebsd"
],
[
"proxy",
"https://snac.smithies.me.uk/justine/p/1743627712.695344",
"activitypub"
]
],
"content": "Ok #FreeBSD folk I'm having a wee issue converting a sed line in one of my scripts from Linux to FreeBSD. The command in question is sed -z 's/\\n/\\\\n/g' but in FreeBSD there is no -z option.\nWhat would be a work around or similar ?\nThanks in advance.\n",
"sig": "9765ce11d633396a7572361fb4ddab40273403be0b703b168348644a5c0ede9ad04a427c963723e0dc1772cd817e69d4ee574fb1ffeca363e28b9b18329ed606"
}