📄 args
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -