当前位置:首页> 正文

Vim: warning: Input is not from a terminal

Vim: warning: Input is not from a terminal
#!/bin/basncat file.txt > tmp.txtcat tmp.txt | while read linedo     vim -c :%s/abc/$line/g ./file2.txt donerm tmp.txt


 
 

运行以上脚本时, 出现 Vim: warning: Input is not from a terminal

解决办法:

#!/bin/basncat file.txt > tmp.txtcat tmp.txt | while read linedo     vim -c :%s/abc/$line/g ./file2.txt < /dev/ttydonerm tmp.txt

展开全文阅读

相关内容