nushell/old_nushell/docs/commands/str-trim.md
Fernando Herrera fdce6c49ab engine-q merge
2022-02-07 19:11:34 +00: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