nushell/docs/commands/str-rtrim.md
Fernando Herrera dbcadbc12c moved folders
2022-02-07 19:23:12 +00:00

503 B

str rtrim

trims whitespace or character from the end of text

Usage

> str rtrim ...args {flags} 

Parameters

  • ...args: optionally trim text starting from the end by column paths

Flags

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

Examples

Trim whitespace from the end of string

> echo ' Nu shell ' | str rtrim

Trim a specific character

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