nushell/docs/commands/str-trim.md
JT bff81f24aa
Autogenerate missing docs (#3514)
* Autogenerate missing docs

* Update ansi.md

* Rename question mark command docs

* Delete empty?.md
2021-05-30 12:57:04 +12:00

424 B

str trim

trims text

Usage

> str trim ...args {flags} 

Parameters

  • ...args: optionally trim text by column paths

Flags

  • -h, --help: Display this help message
  • -c, --char : character to trim (default: whitespace)

Examples

Trim whitespace

> echo 'Nu shell ' | str trim

Trim a specific character

> echo '=== Nu shell ===' | str trim -c '=' | str trim