shell脚本的 -P
时间: 2023-10-20 07:35:30 浏览: 193
shell脚本
-P项在这个shell脚本中用于read命令。当使用-P选项时,read命令会显示一个提示符,并将用户的输入存储到指定的变量中。在这个猜数游戏的脚本中,使用-P选项来显示"开始/退出(y/n):"的提示,并将用户的输入存储到变量x中。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [shell脚本实现猜数游戏](https://download.csdn.net/download/weixin_38536397/14888910)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [“读取-p”在linux shell脚本中做了什么?](https://blog.csdn.net/weixin_39995943/article/details/116691138)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文