html tool

2019年11月6日星期三

shell input

https://blog.csdn.net/zilong00007/article/details/6681090

read -p "Enter your job title: "

格    式
含    义
read -e
在交互式shell命令行中启用编辑器。例如,如果编辑器是vi,则可以在输入行时使用vi命令
read –p prompt
打印提示符,等待输入,并将输入赋值给REPLY变量
read –r line
允许输入包含反斜杠

没有评论:

发表评论