• listless@lemmy.cringecollective.io
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    4 months ago

    And there’s your problem. You’re echoing using double quotes which will interpret characters. Don’t do that. That’s a bug. cat or cp the file to the destination; printf if the contents are all in that variable.