linux脚本需要交互的时候自动输入字符

如果abc.sh脚本里有要输入y再往执行的,可以 echo "y" |abc.sh
原文地址:https://www.cnblogs.com/mengxiaoleng/p/14364311.html