View Single Post
Old 08-11-2009   #3 (permalink)
svkk


Vista Home Premium 32bit
 
 

Re: Search filenames only

It's been a little while, but I accidentally bumped into the solution the other day.

In short form:

Code:
ls |? {$_.Name -match "match me"}
Long form:

Code:
Get-ChildItem | Where-Object {$_.Name -match "match me"}
My System SpecsSystem Spec