1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-23 20:26:45 +01:00
nushell/docs/commands/str-trim.md

27 lines
424 B
Markdown
Raw Normal View History

# 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
```