nushell/docs/commands/str-trim.md
Fernando Herrera dbcadbc12c moved folders
2022-02-07 19:23:12 +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