arginfo.ksh
来自「Solaris环境下Shell编程编程」· KSH 代码 · 共 29 行
KSH
29 行
#!/bin/ksh# Purpose: Print out information about the positional parameters.## Name: arginfo.kshprint "The name of the script is: $0"print "Positional Parameter Value"print " \$1 $1"print " \$2 $2"print " \${10} ${10}"print "The number of positional parameters is: $#"printif (( $# >= 5 )); then print "Now shift all values over by 5 places." shift 5 print "Positional parameters remaining:" print $* print print "The number of positional parameters is: $#"fi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?