#!/bin/bash # read 是读取, -p 是打印 read -p "please input your name: " name read -p "please input your age: " age echo "my name is $name, and my age is $age"