Published
- 1 min read
grep powershell
The solution for this is noted below
grep powershell
Solution
To grep in powershell use Select-String. Select-String uses regex wildcards
so you have to use .* instead of only * (for instance). You can also specify
path.
ls | Select-String -Pattern ".*Anders.*"
ls | Select-String -Path ".*Code.*" -Pattern ".*\.cs"
Try other methods by searching on the site. That is if this doesn’t work