mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
24 lines
385 B
Markdown
24 lines
385 B
Markdown
|
|
||
|
{% 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:
|
||
|
```yml
|
||
|
V29ya3Mgd2l0aCBVVEYtMTYg8J+Yig==
|
||
|
```
|
||
|
then
|
||
|
```bash
|
||
|
yq -p=props sample.properties
|
||
|
```
|
||
|
will output
|
||
|
```yaml
|
||
|
V29ya3Mgd2l0aCBVVEYtMTYg8J+Yig: =
|
||
|
```
|
||
|
|