小编Lme*_*dza的帖子

如何将 grep 搜索的结果通过管道传输到新的 vi 文件中

我正在使用grep -e Peugeot -e PeuGeot carlist.txtcarlist.txt 搜索并提取一些项目,我认为这grep -e Peugeot -e PeuGeot carlist.txt | vi会为我通过管道,但这就是我得到的:

Vim: Warning: Input is not from a terminal
Vim: Error reading input, exiting...
Vim: preserving files...
Vim: Finished.
Run Code Online (Sandbox Code Playgroud)

grep vi

73
推荐指数
4
解决办法
7万
查看次数

标签 统计

grep ×1

vi ×1