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
If you need input from termial, try this
lc=`echo -n "xxx_${yyy}_iOS" | base64`
-n option will not input "\n" character to base64 command.
-n