会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Zackary丶Liu
「 Goals determine what you are going to be. 」
博客园
首页
新随笔
联系
订阅
管理
2018年2月20日
Shell 函数定义与调用
摘要: linux shell 可以用户定义函数,然后在 shell 脚本中可以随便调用。 以一个计算两数之和的函数为例: ~~~~ ! /bin/bash 函数定义 sum(){ return $(($1+$2)) } echo now please input a num: read num echo
阅读全文
posted @ 2018-02-20 21:40 Zackary丶Liu
阅读(468)
评论(0)
推荐(0)
公告