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

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