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