I\'m looking for the PowerShell equivalent to grep --file=filename. If you don\'t know grep, filename is a text file where each line has a regular
grep --file=filename
grep
I'm not familiar with grep but with Select-String you can do:
Get-ChildItem filename.txt | Select-String -Pattern
You can also do that with Get-Content:
(Get-Content filename.txt) -match 'pattern'