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

554 B

str contains

Checks if string contains pattern

Usage

> str contains <pattern> ...args {flags} 

Parameters

  • <pattern> the pattern to find
  • ...args: optionally check if string contains pattern by column paths

Flags

  • -h, --help: Display this help message
  • -i, --insensitive: search is case insensitive

Examples

Check if string contains pattern

> echo 'my_library.rb' | str contains '.rb'

Check if string contains pattern case insensitive

> echo 'my_library.rb' | str contains -i '.RB'