Find files with PowerShell

PowerShell can recursively find files like GNU Findutils using PowerShell function Get-ChildItem. The abbreviated form of Get-ChildItem is “gci”, which we use in these examples. Typically the “-Recurse” option is used as the default is to only search the specified directory level.

Example: Recursively find all “*.lib” files under directory ./build:

gci -Path build -Recurse -Filter *.lib