mirror of
https://github.com/nushell/nushell
synced 2024-12-31 23:39:00 +00:00
bff81f24aa
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
26 lines
424 B
Markdown
26 lines
424 B
Markdown
# str trim
|
|
trims text
|
|
|
|
## Usage
|
|
```shell
|
|
> str trim ...args {flags}
|
|
```
|
|
|
|
## Parameters
|
|
* ...args: optionally trim text by column paths
|
|
|
|
## Flags
|
|
* -h, --help: Display this help message
|
|
* -c, --char <string>: character to trim (default: whitespace)
|
|
|
|
## Examples
|
|
Trim whitespace
|
|
```shell
|
|
> echo 'Nu shell ' | str trim
|
|
```
|
|
|
|
Trim a specific character
|
|
```shell
|
|
> echo '=== Nu shell ===' | str trim -c '=' | str trim
|
|
```
|
|
|