io2.ksh
来自「Solaris环境下Shell编程编程」· KSH 代码 · 共 17 行
KSH
17 行
#!/bin/ksh# Script name: io2.ksh# This script prompts for input and prints messages# involving the input received.print -n "Enter your name: "read name junkprint -n "Hi $name, how old are you? "read age junkprint "\n\t$age is an awkward age, $name,"print " You're too old to depend on your parents,"print "and not old enough to depend on your children."
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?