Added join strings operator

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 626e9cacaf
commit d21c94cf4f
5 changed files with 95 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
## 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
```