while read -r line; do ......... read -p "please input (yes?no):" flag ......... done<linux-image.txt
我想外层依次读取linux-image.txt每一行,在循环中还要读取用户输入做判断。
但是 read -p “please iput (yes?no):" flag,未起作用,flag也有值貌似是外层read -r line 的值,这个怎么解决呢?我是刚入shell的菜鸟。