Grep on PowerShell
I must admit that I find the windows PowerShell a really-way-too-late pale substitution for the full capacity of the unix shell , but since I sometimes need to work on windows , there ain’t much I can do about it.
So , grep :
the equivalent of”grep” in PS is”Select-String” .
The most basic usage is :
Select-String <Some string> <List of files>
i.e
Select-String DocumentsCount *.txt
Almost all other grep functionality is supported ,and you can find more about it here
This post is licensed under CC BY 4.0 by the author.
Comments powered by Disqus.