PowerShell: Filter File Name by Regular Expression
Filter File Name by Regular Expression
The where-object
cmdlet is useful to filter files by a boolean test of
Regular Expression
pattern match.
# list jpg files dir -recurse -file | where { $_.name -match "\.jpg|\.jpeg|\.jfif"}
PowerShell, List Dirs and Files
List Dirs
- PowerShell: Navigate Directory
- PowerShell: Show Current Dir Path
- PowerShell: List Directories
- Show Directory as Tree
- PowerShell: List Empty Dir 🚀
- PowerShell: Dir Size 🚀
List Files
- PowerShell: List Files
- PowerShell: Show Fullpath, No Truncate Lines
- PowerShell: List Empty Files
- PowerShell: Count Number of Files
- PowerShell: List Files by Name Pattern
- PowerShell: Filter File Name by Regular Expression
- PowerShell: List File by Size
- PowerShell: Sort Files by File Size 🚀
- PowerShell: List Files by Date Time
- PowerShell: Search Text in Files (grep)