【发布时间】:2020-09-13 07:39:37
【问题描述】:
我正在尝试在我找到的每个文件中写入一个单词,假设我有
>>grep one ~/home/docs/*
/numbers.txt one is a number
/integers.txt one is an integer
我需要在下面添加一个额外的行,它说的几乎相同,但是用第二个代替,说
“经过一些编码后,我可以在其中添加第二行 (...)”
我应该会写
>>grep two ~/home/docs/*
/numbers.txt two is a number
/integers.txt two is an integer
【问题讨论】:
-
请将该示例输入的所需输出(无描述)添加到您的问题(无评论)。
标签: grep code-duplication