mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 00:43:33 +01:00
bff81f24aa
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
431 B
431 B
any?
Find if the table rows matches the condition.
Usage
> 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
> echo [[status]; [UP] [DOWN] [UP]] | any? status == DOWN
Check if any of the values is odd
> echo [2 4 1 6 8] | any? ($it mod 2) == 1