Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix field names to match examples #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions manuscript/chapter8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@

| Parameter | What does it do? |
| --------- | ---------------- |
| `${VAR:OFFSET}` | Remove first `N` chars from variable.
| `${VAR:OFFSET:LENGTH}` | Get substring from `N` character to `N` character. <br> (`${VAR:10:10}`: Get sub-string from char `10` to char `20`)
| `${VAR:: OFFSET}` | Get first `N` chars from variable.
| `${VAR:: -OFFSET}` | Remove last `N` chars from variable.
| `${VAR: -OFFSET}` | Get last `N` chars from variable.
| `${VAR:OFFSET:-OFFSET}` | Cut first `N` chars and last `N` chars. | `bash 4.2+` |
| `${VAR:OFFSET}` | Remove first `OFFSET` chars from variable.
| `${VAR:OFFSET:LENGTH}` | Get substring from `OFFSET` character to `LENGTH` character. `OFFSET` is zero-based. <br> (`${VAR:10:10}`: Get sub-string from char `10` to char `20`)
| `${VAR:: OFFSET}` | Get first `OFFSET` chars from variable.
| `${VAR:: -OFFSET}` | Remove last `OFFSET` chars from variable.
| `${VAR: -OFFSET}` | Get last `OFFSET` chars from variable.
| `${VAR:OFFSET:-OFFSET2}` | Cut first `OFFSET` chars and last `OFFSET2` chars. | `bash 4.2+` |

## Case Modification

Expand Down