#!/bin/bash
read -t 7 -p "input your name " NAME
echo $NAME
read -t 11 -p "input you age " AGE
echo $AGE
read -t 15 -p "input your friend " FRIEND
echo $FRIEND
read -t 16 -p "input your love " LOVE
echo $LOVE
shell读取控制台传入参数 read -p
未经允许不得转载:工具盒子 » shell读取控制台传入参数 read -p