Powershell script for search substring into text files or folder

Sometimes you need find substring or group of strings into text files in folder. For resolve this task I use Powershell script. It displays the number of occurrences of the string and file names where the substring is found.

You can to search into files with any extension. Change line number 12 -Filter parameter («*.txt»).

If you want to search into only one folder (without recursion) then remove “-Recurse” to the original Get-ChildItem command.

Ваши комментарии к статье:

Wordpress

Оставить комментарий

Ваш адрес email не будет опубликован.

Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.

ВКонтакте
Google+