我想在一行(多行)的特定单词之间替换字符。例如:
first second third | first line
first second third | second line
first second third | third line
first second third | forth line
....
我想在linux中替换第三和第一/第二/第三/第四etc...using、sed或vi之间的字符。
如果这个问题已经回答了,你能给我提供链接吗?谢谢!
我的文件包含以下几行
File.txt
Unix is good
Linux and unix is different?
Linux is also good, then what about unix?
这里我要输出
(1st line blank)
Linix and
Linux is also good, then what about
在这里vi命令或任何其他命令都会给出这个输出?搜索特定的单词,如果这是对的话,然后删除那个词,然后删除该行中的所有单词。