This might be dodging the question, but you could just use the sed
and grep
-statements within powershell by importing them from an existing git installation.
If installed, C:\Program Files\Git\usr\bin
contains a pretty good selection of the statements you're looking for, such as sed.exe
. You can set an alias for these and use them in the way you're used to:
Set-Alias -Name sed -Value C:\"Program Files"\Git\usr\bin\sed.exe
You can define these aliases in a configuration file to preserve them. Create a file called C:\Users\*UserName*\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
and allow script execution in powershell with admin rights by calling:
set-executionpolicy remotesigned