ex19.sh
来自「Shall高级编程」· Shell 代码 · 共 21 行
SH
21 行
#!/bin/bash# shft.sh: Using 'shift' to step through all the positional parameters# Name this script something like shft.sh,#+ and invoke it with some parameters.#+ For example:# sh shft.sh a b c def 23 skidoountil [ -z "$1" ] # Until all parameters used up . . .do echo -n "$1 " shiftdoneecho # Extra line feed.exit 0# See also the echo-params.sh script for a "shiftless"#+ alternative method of stepping through the positional params.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?