✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Suppose you have a file called foo.txt, which contains the following text on two lines:
Edinburgh is the best city in Scotland.
We love Edinburgh!
What is the effect of executing the following command?
sed 's/Edinburgh/Glasgow/g' foo.txt