View Single Post
Old 07-04-2009   #1 (permalink)
svkk


Vista Home Premium 32bit
 
 

Search filenames only

Hello,

I'm a beginner in powershell.

I'm wondering how I could search a directory of files for a match that occurs not in the contents of the files, but only in the names of the files?

In Linux (bash), I could do:

Code:
ls | grep -i "match me"
Which would search for "match me" within the filenames of all the files in the current directory.

What about powershell?
My System SpecsSystem Spec