G
G
gleendo2017-08-02 20:08:22
PowerShell
gleendo, 2017-08-02 20:08:22

Why does the error "sed: The name 'sed' is not recognized as a cmdlet name..." occur?

The book describes how to collect all the styles in one bundle file.

cat css/*/* css/*.css | sed 's/..\/..\/images/images/g' bundle.css

As a result, an error occurs:
// sed : Имя "sed" не распознано как имя командлета, функции, файла сценария или выполняемой программы.

What could be the reason?
PS. windows/powershell

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
vreitech, 2017-08-02
@fzfx

Is there sed in powershell? in the book it says that this is a way for powershell or for windows?

A
azarij, 2017-08-02
@azarij

are you trying to run a bash script in powershell? it won't work. run it on linux system or windows subsystem for linux in windows 10.

K
kisaa, 2017-08-03
@kisaa

Why do you need bash, why do you need cmder? What, powershell functions cannot make this replacement? Rewrite the right part (after the pipe) and you will be happy.

D
Dengul, 2017-08-08
@Dengul

I suspect that instead of sed there should be set.
look through get-alias. There is no sed cmdlet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question