sh脚本中断,请求用户输入字符,并传入字符后继续运行 0 minutes, 4 seconds 29th Apr 2025 发布时间:2022-08-22 16:24:06 代码 read -p "固定文本,如提示语" str //str为字符串例:read -p "请输入你的引导盘(sda/sdb/sdc):" bootdiskread -p "请输入你的引导盘类型(usb/sata):" boottypeechoecho "你输入的是<引导盘为$bootdisk 引导盘类型为$boottype>"