secondfunc.ksh
来自「Solaris环境下Shell编程编程」· KSH 代码 · 共 28 行
KSH
28 行
#!/bin/ksh# Purpose: To parse a long pathname.## Name: secondfunc.kshFPATH=/myfuncsif [ $# -ne 0 ]; then echo "Usage: secondfunc" exit 1fiprint -n "Enter a pathname and I will parse it: [Control-D to quit]: "read pathname junkwhile [[ -n $pathname ]]do parsepath $pathname # Enter a control-D to quit print -n "Enter a pathname and I will parse it: [Control-D to quit]: " read pathname junkdone
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?