千家信息网

linux location parameter

发表于:2025-02-08 作者:千家信息网编辑
千家信息网最后更新 2025年02月08日,#! /bin/bashdeclare -i sumdeclare -i muliif [ $# -lt 2 ];thenecho "usage is please input three argum
千家信息网最后更新 2025年02月08日linux location parameter

#! /bin/bash
declare -i sum
declare -i muli
if [ $# -lt 2 ];then
echo "usage is please input three argument."
exit 5
fi
let sum=$1+$2
let mult=$1*$2
echo "the sum is $sum"
echo "The mult is $mult"

0