mirror of
https://github.com/nushell/nushell.git
synced 2024-12-27 01:19:25 +01:00
22 lines
395 B
Markdown
22 lines
395 B
Markdown
|
# str ends-with
|
||
|
checks if string ends with pattern
|
||
|
|
||
|
## Usage
|
||
|
```shell
|
||
|
> 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
|
||
|
```shell
|
||
|
> echo 'my_library.rb' | str ends-with '.rb'
|
||
|
```
|
||
|
|