Max
Computes the maximum among an incoming sequence of scalar values.
Maximum int
Given a sample.yml file of:
- 99
- 16
- 12
- 6
- 66then
yq 'max' sample.ymlwill output
99Maximum string
Given a sample.yml file of:
- foo
- bar
- bazthen
will output
Maximum of empty
Given a sample.yml file of:
then
will output
Last updated
Was this helpful?