I am trying to use base64 but the script doesn't run successfully in Ubuntu machine
MYCOMMAND=$(base64 commands.sh)
So in Ubuntu , I have to use
MYCOMMAND=$(base64 -w0 commands.sh)
unfortunately this option is not there in Mac. How can i write a single script which runs both in Mac and Ubuntu