Ai
1 Star 0 Fork 0

Nidhogg14/Linux_Command_Line_and_Shell_Scripting_Bible

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test7.sh 223 Bytes
一键复制 编辑 原始数据 按行查看 历史
Nidhogg14 提交于 2023-11-13 21:52 +08:00 . Initial commit
#!/bin/bash
# trying to access script parameters inside a function
function func7 {
echo $[ $1 * $2 ]
}
if [ $# -eq 2 ]
then
value=$(func7 $1 $2)
echo "The result is $value"
else
echo "Usage: badtest1 a b"
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/Nidhogg14/Linux_Command_Line_and_Shell_Scripting_Bible.git
git@gitee.com:Nidhogg14/Linux_Command_Line_and_Shell_Scripting_Bible.git
Nidhogg14
Linux_Command_Line_and_Shell_Scripting_Bible
Linux_Command_Line_and_Shell_Scripting_Bible
master

搜索帮助