args
来自「UNIX+shell范例精解(第4版)代码」· 代码 · 共 21 行
TXT
21 行
#!/bin/ksh# Script to test command line argumentsprint 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 + -
显示快捷键?