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

395 B

str ends-with

checks if string ends with pattern

Usage

> str ends-with <pattern> ...args {flags} 

Parameters

  • <pattern> the pattern to match
  • ...args: optionally matches suffix of text by column paths

Flags

  • -h, --help: Display this help message

Examples

Checks if string ends with '.rb' pattern

> echo 'my_library.rb' | str ends-with '.rb'