yq/pkg/yqlib/doc/usage/base64.md
2022-02-23 09:26:35 +11:00

385 B

{% hint style="warning" %} Note that versions prior to 4.18 require the 'eval/e' command to be specified.

yq e <exp> <file> {% endhint %}

Decode Base64

Decoded data is assumed to be a string.

Given a sample.yml file of:

V29ya3Mgd2l0aCBVVEYtMTYg8J+Yig==

then

yq -p=props sample.properties

will output

V29ya3Mgd2l0aCBVVEYtMTYg8J+Yig: =