废贴,请管理员删除

sh/bash/dash/ksh/zsh等Shell脚本
回复
pumasare
帖子: 5
注册时间: 2011-12-01 20:52

废贴,请管理员删除

#1

帖子 pumasare » 2011-12-03 10:25

请管理员删除
上次由 pumasare 在 2011-12-06 21:50,总共编辑 1 次。
头像
chenzhiwei
帖子: 58
注册时间: 2009-06-27 21:31
联系:

Re: Ubuntu 中shell程序的意思

#2

帖子 chenzhiwei » 2011-12-03 10:45

调用时函数的参数
如: changename oldname newname
那么$1就是oldname $2就是newname
一直在用Ubuntu ! http://weibo.com/zhiwei
头像
枫叶饭团
帖子: 14683
注册时间: 2010-06-16 1:05
系统: Mac OS X
来自: Tencent
联系:

Re: Ubuntu 中shell程序的意思

#3

帖子 枫叶饭团 » 2011-12-03 11:02

$1传递给shell的参数1,$2传递给shell的参数2....
回复