在shell脚本中,read 向用户显示一行文本并接受用户输入
#!/bin/bash read -p '依次输入你的姓名、年龄、家乡' name age home echo 我是$name,年龄$age,我来自$home