当前位置: 技术问答>linux和unix
脚本中清空输入流
来源: 互联网 发布时间:2016-08-31
本文导语: 希望帮忙解决,共同进步。 while read curLine do echo $curLine echo "do you want to change the value[y | n]:" read change_YN if [ "x${change_YN}" != "xy" -O "x${change_YN}" != "xY" ];then echo $curLine >> ubb_new ...
希望帮忙解决,共同进步。
while read curLine
do
echo $curLine
echo "do you want to change the value[y | n]:"
read change_YN
if [ "x${change_YN}" != "xy" -O "x${change_YN}" != "xY" ];then
echo $curLine >> ubb_new
continue
fi
#changeLine "${curLine}" "ubb_new"
done
while read curLine
do
echo $curLine
echo "do you want to change the value[y | n]:"
read change_YN
if [ "x${change_YN}" != "xy" -O "x${change_YN}" != "xY" ];then
echo $curLine >> ubb_new
continue
fi
#changeLine "${curLine}" "ubb_new"
done