Как запустить и протестировать инструкции sed и grep в Windows PowerShell?
Когда я запускаю Windows PowerShell и пытаюсь проверить инструкцию sed для моего файла, выдается следующая ошибка:
The term 'sed' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellin
g of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:4
+ sed <<<< -r "s/[0-9]/digit/"
+ CategoryInfo : ObjectNotFound: (sed:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Я пытаюсь запустить следующую инструкцию path/sed:
PS C:\Users\Me\Desktop> cd sed -r "s/[0-9]/a" file.txt
Почему это не работает?
