跳至内容

小顾de杂记

O(∩_∩)O~|Across the great wall we can reach the every corner in the world.

Google自定义搜索

2010年5月
一 二 三 四 五 六 日
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« 4月   6月 »

近期评论

  • Ian发表在《蒲公英 X3-3251 root 后的一些配置与共识》
  • 了然如一发表在《导入Fiddler的DER格式的根证书为安卓系统证书》
  • 了然如一发表在《阿里云官网给的PHP、GO的OSS直传签名的时间算法是错的》
  • Tan nSDF发表在《反向编译OpenWrt的Lua字节码 (Decompile Lua bytecode of OpenWRT)》
  • Tan nSDF发表在《反向编译OpenWrt的Lua字节码 (Decompile Lua bytecode of OpenWRT)》
  • ihipop发表在《反向编译OpenWrt的Lua字节码 (Decompile Lua bytecode of OpenWRT)》
  • heyman发表在《反向编译OpenWrt的Lua字节码 (Decompile Lua bytecode of OpenWRT)》
  • tao waang发表在《反向编译OpenWrt的Lua字节码 (Decompile Lua bytecode of OpenWRT)》
  • ihipop发表在《安全切除一个磁盘镜像img的尾部的空余空间》
  • hev发表在《安全切除一个磁盘镜像img的尾部的空余空间》

标签

  • Apache
  • CentOS
  • CentOS 5
  • chnroutes
  • cron
  • debian
  • discuz
  • DiscuzX
  • dns
  • exec
  • FreeRadius
  • HTML
  • Iptables
  • IPv6
  • isatap
  • javascript
  • jQuery
  • L2TP
  • Linux
  • MySQL
  • NAGIOS
  • nginx
  • OpenVPN
  • php
  • phpQuery
  • pptp
  • Python
  • rtorrent
  • Screen
  • sed
  • shell
  • SSH
  • SVN
  • ubuntu
  • vpn
  • Windows Server
  • 中文
  • 乱码
  • 加密
  • 批处理
  • 插件
  • 日志
  • 模板
  • 路由
  • 转换

每日归档: 2010年5月29日

一个shell参数传递的例子

[bash]#!/bin/bash
function test(){
echo $1
}
echo '$#,传递给程序的总的参数数目':$#
echo '$?,上一个代码或者shell程序在shell中退出的情况,如果正常退出则返回0,反之为非0值':$?
echo '$*,传递给程序的[......]

继续阅读

发布于 2010年05月29日2010年05月29日分类 Linux Manger标签 shell、参数传递一个shell参数传递的例子有2条评论
自豪地采用WordPress