1
0
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:
Kelly Brazil
2023-01-26 17:06:07 -08:00
parent 79305a50d0
commit d6c665f74b
2 changed files with 22 additions and 20 deletions

View File

@ -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 |

View File

@ -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 |