When I run base64 filename >> encodedfile
the new content is appended to existing content. Is there any way I can replace entire old content with new content. Using any similar one line technique? I'd like to learn more such techniques, but I don't know what to search for?
EDIT:
What if the new file is same file. Ex: base64 filename > filename
. I tried this, the instead of the new content, I see the file gets blank...