I\'m trying to base64 encode an image in a shell script and put it into variable:
test=\"$(printf DSC_0251.JPG | base64)\" echo $test RFNDXzAyNTEuSlBH
To base64 it and put it in your clipboard:
file="test.docx" base64 -w 0 $file | xclip -selection clipboard