shell function
来源:互联网 发布:域名备案 网站名称 编辑:程序博客网 时间:2024/06/02 18:36
======================
Use function in your script: =
======================
fun:
#!/bin/bash#function definationfunc() { echo "function demon"; ls; echo "----------"; }funcwelcome() { echo "Hi $1 and $2"; }welcome joseph stevenset jane amyecho $*welcome joseph stevenecho $1 $2
==============
The Library File: =
==============
my_login:
#!/bin/echo Waring: This login library should be sourced!usr_name() { echo "your name?"read u_namecase$u_namein"joseph" ) echo "Well come!" return 0;;"Joseph" )echo "Well come!" return 0;;*)echo "Sorry, I don't know you!" return 1 ;;esac }
system:
#!/bin/bashsource my_loginusr_nameif [ "$?" -eq 0 ]; thenecho "login success!"fi
- shell function
- shell-function
- shell function in vb
- shell学习三----function
- shell-009: function
- shell语法function
- Function Menu use Shell
- makefile shell function
- Linux shell function study
- shell 中函数function()
- shell function and input parameters
- linux shell ctrl key function
- Linux shell function call Sample
- shell下function报错
- 函数详解(function)--shell学习
- Definition and Function of a Shell
- Using Bash shell scripts for function testing
- shell编程基础(4)case 与 function
- WebBrowser控件使用详解
- 64位win7下pl/sql developer ORA-12154
- 进程、过程调用、函数调用、堆、栈
- pb webbrowser控件用法
- 使用Imagex网络还原系统 服务器架设篇
- shell function
- 如何快速成为javascript高手的思考
- python 键盘上下左右控制
- js打印纸函数代码(递归)
- 谈谈“机制”和“策略”
- WinPE启动映像制作(具体可参考WAIK帮助文档,这里只做简介)WinPe Image 制作篇
- 加裁WinPE映像到Windows Deployment Services 服务器中 调式篇
- Ubuntu中如何切换到超级用户(root)及在VMware虚拟机中Linux在虚拟终端之间切换的方法
- suncluster3.1无法启动处理总结