To find files in a directory that have both "foo" and "bar" in the filename, we can use:
Get-ChildItem | Where-Object {$_.Name -like "foo" -and $_.Name -like "bar"}
Is there a more elegant way to write (or query for) this?
برچسب:
نویسنده: استخدام کار