Это мой файл
Код: Выделить всё
Hello world
the world is mine
но я точно не знаю как...
Код: Выделить всё
grep Hello myfile | sed -i 's/world/Italy/gрезультат, который я получу:
Код: Выделить всё
Hello Italy
the world is mine
Подробнее здесь: https://stackoverflow.com/questions/791 ... ep-string2
Мобильная версия