mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 11:54:02 +01:00
27 lines
521 B
Markdown
27 lines
521 B
Markdown
|
# str ltrim
|
||
|
trims whitespace or character from the beginning of text
|
||
|
|
||
|
## Usage
|
||
|
```shell
|
||
|
> str ltrim ...args {flags}
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
* ...args: optionally trim text starting from the beginning by column paths
|
||
|
|
||
|
## Flags
|
||
|
* -h, --help: Display this help message
|
||
|
* -c, --char <string>: character to trim (default: whitespace)
|
||
|
|
||
|
## Examples
|
||
|
Trim whitespace from the beginning of string
|
||
|
```shell
|
||
|
> echo ' Nu shell ' | str ltrim
|
||
|
```
|
||
|
|
||
|
Trim a specific character
|
||
|
```shell
|
||
|
> echo '=== Nu shell ===' | str ltrim -c '='
|
||
|
```
|
||
|
|