yq/pkg/yqlib/doc/String Operators.md
2021-01-14 14:46:50 +11:00

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
```