args

来自「《PC数据采集》源代码」· 代码 · 共 21 行

TXT
21
字号
#!/bin/sh# Script name:  args# Script to test command line argumentsecho The name of this script is $0.echo The arguments are $*.echo The first argument is $1.echo The second argument is $2.echo The number of arguments is $#.oldargs=$*		# save parameters  passed in from the			# command lineset Jake Nicky Scott	# reset the positional parametersecho All the positional parameters are $*.echo The number of postional parameters is $#.echo "Good-bye for now, $1 "set `date`			          #  reset the positional parametersecho The date is $2 $3, $6.echo "The value of \$oldargs is $oldargs."set $oldargsexitecho $1 $2 $3

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?