ex26.sh

来自「Shall高级编程」· Shell 代码 · 共 16 行

SH
16
字号
#!/bin/bashecho                               # Equivalent to:while [ "$var1" != "end" ]     # while test "$var1" != "end"do  echo "Input variable #1 (end to exit) "  read var1                    # Not 'read $var1' (why?).  echo "variable #1 = $var1"   # Need quotes because of "#" . . .  # If input is 'end', echoes it here.  # Does not test for termination condition until top of loop.  echodone  exit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?