mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 11:54:02 +01:00
26 lines
413 B
Markdown
26 lines
413 B
Markdown
|
# all?
|
||
|
Find if the table rows matches the condition.
|
||
|
|
||
|
## Usage
|
||
|
```shell
|
||
|
> all? <condition> {flags}
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
* `<condition>` the condition that must match
|
||
|
|
||
|
## Flags
|
||
|
* -h, --help: Display this help message
|
||
|
|
||
|
## Examples
|
||
|
Find if services are running
|
||
|
```shell
|
||
|
> echo [[status]; [UP] [UP]] | all? status == UP
|
||
|
```
|
||
|
|
||
|
Check that all values are even
|
||
|
```shell
|
||
|
> echo [2 4 6 8] | all? ($it mod 2) == 0
|
||
|
```
|
||
|
|