#!/bin/bash
add(){
if [ $# -ne 2 ];then
echo "Invalid argument number,expected 2 received $#"
return
fi
echo "$1+$2=$[$1+$2]"
}
add 2 2
标题五个字
最新推荐文章于 2024-08-26 19:45:00 发布
#!/bin/bash
add(){
if [ $# -ne 2 ];then
echo "Invalid argument number,expected 2 received $#"
return
fi
echo "$1+$2=$[$1+$2]"
}
add 2 2