sed:如何替换包含某个字符串的所有行?
假设我有一个包含这些行的文件:
tomatoes
bananas
tomatoes with apples
pears
pears with apples
如何用“oranges”替换包含单词“apples”的每一行?这就是我想要的结果:
tomatoes
bananas
oranges
pears
oranges
没有找到相关结果
已邀请:
2 个回复
仿普
?
凸晴
这说要搜索苹果,然后将整个记录更改为“橙色”。