Tag
Select-String
4 articles
-
PowerShell: Copy files and additional files with different name
This maybe helps some people which need to copy multiple files. In my example I search for Contoso in files called info_*****.txt I need to copy them and also copy the file data_*****.txt. In this blog…
-
PowerShell: Copy Log files with Date and Content
Some days ago I made a blog post about Select-String in PowerShell. I created a “script” or a better a command to check log files for a specific text and copy the log file to another…
-
Powershell: Search for String or grep for Powershell
This shows you how you can search in files for specific content with Windows PowerShell. This also “replaces” the Windows command-line utility “findstr”. In the Unix/Linux world, you mostly use the command grep for doing the…
-
PowerShell: Count your Code lines
After Coding some lines in a lot of different files you wanna know how much lines you have coded. There are two (I am sure there are even more) ways to do that. The first one…


