nushell/docs/commands/where.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

553 B

title layout version
where command 0.59.0

Filter values based on a condition.

Signature

> where (cond)

Parameters

  • cond: condition

Examples

List all files in the current directory with sizes greater than 2kb

> ls | where size > 2kb

List only the files in the current directory

> ls | where type == file

List all files with names that contain "Car"

> ls | where name =~ "Car"

List all files that were modified in the last two weeks

> ls | where modified <= 2wk