mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08:00
Added join strings operator
This commit is contained in:
19
pkg/yqlib/doc/String Operators.md
Normal file
19
pkg/yqlib/doc/String Operators.md
Normal 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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user