#!/bin/bash
name=$1
old=$2
if [[ $# -ne 2 ]];then
echo "the test must input 2 nu!!"
echo $#
exit 0
fi
echo "my name is ${name}!"
echo "i‘m ${old} yeas old!"
if [[ ${old} <30 ]];then
echo "you are so yunng!"
else
echo "so old!"
fi
时间: 2024-11-06 03:45:48