Sed 's/snow/rain/' forests.txt is not working

sed ‘s/snow/rain/’ forests.txt

this command i typed as asked to but returns as unterminated `s’ command. please help

1 Like

Any chance you could upload a screenshot?

Also are you on step 2 or 3 of that exercise?

1 Like

HI here what you should type

sed 's/snow/rain/g' forests.txt

and here what you typed

sed 's/snow/rain/' forests.txt

Do you see what’s missing?

1 Like

Me too Stuck here , whats wrong with the Command ?

I also met the same problem, I click the ‘reset the exercise’ and refresh my web page, then I use the ‘tab’ key instead of the blank, and the problem is gone. I hope this can help you.

I can’t get past this:
sed ‘s/snow/rain/’ forests.txt

Getting the same problem on step 2, refreshing didn’t help.

From the screenshot, you’ll want to add a forward slash / at the end of your sed expression.

's/snow/rain/'

2 Likes

you should run cat forests.txt again after running sed 's/snow/rain/' forests.txt command.

1 Like