tellme

来自「Advanced Bash&#8722 Scripting Guide An 」· 代码 · 共 28 行

TXT
28
字号
#!/bin/ksh# Scriptname: tellme# Example 10.91read age?"How old are you? "if (( age < 0 || age > 120 ))then      print "Welcome to our planet! "      exit 1  fiif (( age >= 0 && age < 13 ))then      print "A child is a garden of verses"elif (( age > 12 && age < 20 ))then      print "Rebel without a cause"elif (( age >= 20 && age < 30 ))then      print "You got the world by the tail!!"elif (( age >= 30 && age < 40 ))then      print "Thirty something..."else      print "Sorry I asked"fi

⌨️ 快捷键说明

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