mirror of
https://github.com/nushell/nushell.git
synced 2025-08-13 23:08:43 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
25
docs/commands/any.md
Normal file
25
docs/commands/any.md
Normal file
@ -0,0 +1,25 @@
|
||||
# any?
|
||||
Find if the table rows matches the condition.
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> any? <condition> {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* `<condition>` the condition that must match
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
|
||||
## Examples
|
||||
Find if a service is not running
|
||||
```shell
|
||||
> echo [[status]; [UP] [DOWN] [UP]] | any? status == DOWN
|
||||
```
|
||||
|
||||
Check if any of the values is odd
|
||||
```shell
|
||||
> echo [2 4 1 6 8] | any? ($it mod 2) == 1
|
||||
```
|
||||
|
Reference in New Issue
Block a user