mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-10 08:35:42 +00:00
remove repetitive words
Signed-off-by: wellweek <xiezitai@outlook.com>
This commit is contained in:
parent
b4463e29e8
commit
5e0f348488
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
The slice array operator takes an array as input and returns a subarray. Like the `jq` equivalent, `.[10:15]` will return an array of length 5, starting from index 10 inclusive, up to index 15 exclusive. Negative numbers count backwards from the end of the array.
|
The slice array operator takes an array as input and returns a subarray. Like the `jq` equivalent, `.[10:15]` will return an array of length 5, starting from index 10 inclusive, up to index 15 exclusive. Negative numbers count backwards from the end of the array.
|
||||||
|
|
||||||
You may leave out the first or second number, which will will refer to the start or end of the array respectively.
|
You may leave out the first or second number, which will refer to the start or end of the array respectively.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
The slice array operator takes an array as input and returns a subarray. Like the `jq` equivalent, `.[10:15]` will return an array of length 5, starting from index 10 inclusive, up to index 15 exclusive. Negative numbers count backwards from the end of the array.
|
The slice array operator takes an array as input and returns a subarray. Like the `jq` equivalent, `.[10:15]` will return an array of length 5, starting from index 10 inclusive, up to index 15 exclusive. Negative numbers count backwards from the end of the array.
|
||||||
|
|
||||||
You may leave out the first or second number, which will will refer to the start or end of the array respectively.
|
You may leave out the first or second number, which will refer to the start or end of the array respectively.
|
||||||
|
|
||||||
## Slicing arrays
|
## Slicing arrays
|
||||||
Given a sample.yml file of:
|
Given a sample.yml file of:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user