mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
add both negative slice description
This commit is contained in:
@ -350,12 +350,13 @@ feature works.
|
|||||||
Here is a quick breakdown:
|
Here is a quick breakdown:
|
||||||
|
|
||||||
| Slice | Description |
|
| Slice | Description |
|
||||||
|-----------------|------------------------------------------------------------|
|
|----------------|--------------------------------------------------------------|
|
||||||
| `START:STOP` | lines `START` through `STOP - 1` |
|
| `START:STOP` | lines `START` through `STOP - 1` |
|
||||||
| `START:` | lines `START` through the rest of the output |
|
| `START:` | lines `START` through the rest of the output |
|
||||||
| `:STOP` | lines from the beginning through `STOP - 1` |
|
| `:STOP` | lines from the beginning through `STOP - 1` |
|
||||||
| `-START:STOP` | `START` lines from the end through `STOP - 1` |
|
| `-START:STOP` | `START` lines from the end through `STOP - 1` |
|
||||||
| `START:-STOP` | lines `START` through `STOP` lines from the end |
|
| `START:-STOP` | lines `START` through `STOP` lines from the end |
|
||||||
|
| `-START:-STOP` | `START` lines from the end through `STOP` lines from the end |
|
||||||
| `-START:` | `START` lines from the end through the rest of the output |
|
| `-START:` | `START` lines from the end through the rest of the output |
|
||||||
| `:-STOP` | lines from the beginning through `STOP` lines from the end |
|
| `:-STOP` | lines from the beginning through `STOP` lines from the end |
|
||||||
| `:` | all lines |
|
| `:` | all lines |
|
||||||
|
@ -212,12 +212,13 @@ feature works.
|
|||||||
Here is a quick breakdown:
|
Here is a quick breakdown:
|
||||||
|
|
||||||
| Slice | Description |
|
| Slice | Description |
|
||||||
|-----------------|------------------------------------------------------------|
|
|----------------|--------------------------------------------------------------|
|
||||||
| `START:STOP` | lines `START` through `STOP - 1` |
|
| `START:STOP` | lines `START` through `STOP - 1` |
|
||||||
| `START:` | lines `START` through the rest of the output |
|
| `START:` | lines `START` through the rest of the output |
|
||||||
| `:STOP` | lines from the beginning through `STOP - 1` |
|
| `:STOP` | lines from the beginning through `STOP - 1` |
|
||||||
| `-START:STOP` | `START` lines from the end through `STOP - 1` |
|
| `-START:STOP` | `START` lines from the end through `STOP - 1` |
|
||||||
| `START:-STOP` | lines `START` through `STOP` lines from the end |
|
| `START:-STOP` | lines `START` through `STOP` lines from the end |
|
||||||
|
| `-START:-STOP` | `START` lines from the end through `STOP` lines from the end |
|
||||||
| `-START:` | `START` lines from the end through the rest of the output |
|
| `-START:` | `START` lines from the end through the rest of the output |
|
||||||
| `:-STOP` | lines from the beginning through `STOP` lines from the end |
|
| `:-STOP` | lines from the beginning through `STOP` lines from the end |
|
||||||
| `:` | all lines |
|
| `:` | all lines |
|
||||||
|
Reference in New Issue
Block a user