function usage conclude
来源:互联网 发布:阿里云免费云服务器 编辑:程序博客网 时间:2024/05/16 19:21
shell
function exitfile {
#transfer parameter (attention : it is not in function name ,like exitfile(a); it didn't permit have "()" in shell function. sometimes it is in awk/nawk/xwak function which is in shell)
a=$1
if [ -f $a ]
then
#OFC33L40.0
load=$(echo $a |nawk 'if (/OFC(\d+)/) exit $1')
echo "line21 $load"
release=$(echo $a |nawk 'if (/OFC\d+L(\d+)/) exit $1')
echo "line23 $release"
cp /apx/ecpc/$a/1apx10/omp/OMPgiu/OMPsugr/com/atcalink /var/tmp/atcalink
exit 10
else
exit 11
fi
}
http://bbs.chinaunix.net/thread-1820454-1-1.html
tcl:
proc chkDBMS { AP mode } {{-------------------------------------parameter
global C env
# If this isn't an NGN, nothing to check.
if { "$C(AP${AP}platform)" != "NGN" } {
return 0]------------------------------------------------return value
}
}
perl
sub part (Code $is_sheep, *@data) {
my (@sheep,@goats);
for@data {
if $is_sheep($_) { push @sheep, $_ }
else { push@goats, $_ }
}
return (\@sheep, \@goats);
}
- function usage conclude
- awk usage conclude
- LoadIcon function usage:
- getopt function usage
- usage of c/c++ function
- getopt function usage 获取命令行参数
- To extend jQuery function for gloable usage
- Android M Permissions : the usage of shouldShowRequestPermissionRationale() function
- usage
- Usage sample of unix signal to handle function call with a timeout value.
- OpenGL学习脚印:缓冲对象相关函数的使用(buffer object function usage)
- OpenGL学习脚印:缓冲对象相关函数的使用(buffer object function usage)
- FTPrep, 91 Decode Ways, TODO: need to repeat and conclude
- WinDbg Usage
- cscope usage
- doxygen usage
- Maven Usage
- Vss usage
- ssh主要配置
- Buffer和Cache的区别
- Linux分区挂载与Windows分区
- Zend的配置
- 基于Jenkins的持续集成
- function usage conclude
- JS获取URL中GET的参数
- Oracle Data Guard switchover checklist
- 共好:为管理者提供指南(肯·布兰佳)
- 管理扎谈
- 从1.5k到18k, 一个程序员的5年成长之路
- enough is enough - how to make a dmg the way you expect it
- Oracle SQL性能优化实例(2)
- 搜索目录文件夹的类