args

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

TXT
26
字号
#!/bin/ksh# Script name: args# Example 10.80	# Script to test command line argumentsif [ $# == 0 ] ; then   print \   "Usage:  $(basename $0)  arg1 arg2 ... argn" \   1>&2   exit 1fiprint The name of this script is $0.print The arguments are $*.print The first argument is $1.print The second argument is $2.print The number of arguments is $#.oldparameters=$*set Jake Nicky Scottprint All the positional parameters are $*.print The number of positional parameters is $#.print $oldparametersset --print Good-bye for now, $1.set $oldparametersprint $*

⌨️ 快捷键说明

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