Min
Computes the minimum among an incoming sequence of scalar values.
Minimum int
Given a sample.yml file of:
- 99
- 16
- 12
- 6
- 66then
yq 'min' sample.ymlwill output
6Minimum string
Given a sample.yml file of:
- foo
- bar
- bazthen
yq 'min' sample.ymlwill output
barMinimum of empty
Given a sample.yml file of:
[]then
yq 'min' sample.ymlwill output
Last updated
Was this helpful?