I try to learn Unix and how to use the terminal. I am in a Mac
I open the terminal, I go to a folder. Inside there is the file fruit.txt. In that file there are only the words pear, apple
I want to substitute the word pear and put mango in the file fruit.txt
sed 's/pear/mango/' fruit.txt
the terminal gives me:
mango, apple
But I open the file and nothing changed. What am I missing?