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
This question already has an answer, but I just want to add that in Windows there is Windows Subsystem for Linux WSL.
So for example if you want to check if you have service named Elasicsearch that is in status running you can do something like the snippet below in powershell
net start | grep Elasticsearch