PowerShell: Filter Array

By Xah Lee. Date: . Last updated: .
(1,2,3,4,5).where({$_ -gt 3})
# return (4,5)

another way to filter array is by the -eq operator. [see Test Equality]

PowerShell: Array

PowerShell

Practical How-To

list files

list dirs

on dir

on file

Windows config

zip tar

misc


PowerShell in Depth

Programing PowerShell

Value Types

String

Variable

Boolean

Conditional

Data Structure

Loop and Iteration

Input/Output

Function

Profile and Script

Script Examples