mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 07:08:06 +00:00
484 B
484 B
Min
Computes the minimum among an incoming sequence of scalar values.
Minimum int
Given a sample.yml file of:
- 99
- 16
- 12
- 6
- 66
then
yq 'min' sample.yml
will output
6
Minimum string
Given a sample.yml file of:
- foo
- bar
- baz
then
yq 'min' sample.yml
will output
bar
Minimum of empty
Given a sample.yml file of:
[]
then
yq 'min' sample.yml
will output