echo '...base64 data...' | base64 -d > somefile
in your script.Or add compression to reclaim at least some of the wasted space:
echo '...base64 gzipped data...' | base64 -d | gunzip > somefile
Also note that bash accepts line breaks in quoted strings and the base64 utility has an "ignore garbage" option that lets it skip over e.g. whitespace in its input. You can use those to break up the base64 over multiple lines: echo '
...base64 gzipped data...
...more data...
...even more data...
' | base64 -di | gunzip > somefile