Finding the patterns in files in Windows Powershell

We can use “Select-String” command to search for patterns in Windows Powershell. We can specify the regular expression as the first parameter and then provide the name of file in which we have to search the string.

Below image shows Select-String (also called as “sls”) command in action.

sls-command-in-windows-powershell

sls-command-in-windows-powershell

 

You may also like...