【发布时间】:2023-04-02 13:02:01
【问题描述】:
当我阅读文件时
示例脚本
while read file
do
temp = $(echo $file)
read -p "Press Enter to continue"
echo $temp
done < test.txt
我想暂停脚本直到我按下 ENTER
【问题讨论】:
-
那么脚本的当前行为是什么?
-
我不能暂停脚本它只是直接打印最后一行
标签: bash shell while-loop