Join Nostr
2025-04-02 21:10:52 UTC
in reply to

Aaron Toponce ⚛️:debian: on Nostr: Justine Smithies Hmm. Good question. I don't know that BSD sed(1) supports escape ...

Hmm. Good question. I don't know that BSD sed(1) supports escape sequences like \x00 for null characters. How about a work around?

$ sed 's/$/\xff/g' input.txt | tr '\xff' '\0' > output.txt