mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
20 lines
183 B
Markdown
20 lines
183 B
Markdown
|
|
||
|
## Join strings
|
||
|
Given a sample.yml file of:
|
||
|
```yaml
|
||
|
- cat
|
||
|
- meow
|
||
|
- 1
|
||
|
- null
|
||
|
- true
|
||
|
```
|
||
|
then
|
||
|
```bash
|
||
|
yq eval 'join("; ")' sample.yml
|
||
|
```
|
||
|
will output
|
||
|
```yaml
|
||
|
cat; meow; 1; ; true
|
||
|
```
|
||
|
|