Vim: warning: Input is not from a terminal
2015-01-15 10:48
2091 查看
#!/bin/basn cat file.txt > tmp.txt cat tmp.txt | while read line do vim -c :%s/abc/$line/g ./file2.txt done rm tmp.txt
运行以上脚本时, 出现 Vim: warning: Input is not from a terminal
解决办法:
#!/bin/basn cat file.txt > tmp.txt cat tmp.txt | while read line do vim -c :%s/abc/$line/g ./file2.txt < /dev/tty done rm tmp.txt
相关文章推荐
- WARNING: terminal is not fully functional
- msysgit 1.17.10 WARNING: terminal is not fully functional
- zz"WARNING: terminal is not fully functional" and pro blems with vi
- 禁止requests请求https的提示InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more
- 解决方案:Warning: phpinfo(): It is not safe to rely on the system's timezone settings.
- PHP Warning: date() [function.date]: It is not safe to
- java.lang.IllegalStateException:Make sure the content of your adapter is not modified from a backgro
- Could not parse mapping document from input stream
- Warning: Your Nexus 7 Tablet Is Not Actually a "Tablet" (But Here's How You Make It One)
- UserWarning: The installed version of numexpr 2.4 is not supported in pandas and will be not be used
- TensorFlow:NameError: name ‘input_data’ is not defined
- 脚本调用ssh后出现Pseudo-terminal will not be allocated because stdin is not a terminal
- 启动dokcer容器遇到 WARNING: IPv4 forwarding is disabled. Networking will not work
- ssh@host:""ssh切换到其他机器上执行多条命令;Pseudo-terminal will not be allocated because stdin is not a terminal.
- ssh@host:""ssh切换到其他机器上执行多条命令;Pseudo-terminal will not be allocated because stdin is not a terminal.
- [Python]Numpy安装及一些玄学问题(is not a supported wheel on this platform、Undefined variable from import)
- git命令行在windows中报错WARNING: terminal is not fully functional
- java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- 远程mysql_java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- PHP Warning: date() [function.date]: It is not saf