⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tellme

📁 UNIX[1].shell范例精解(第4版)_code
💻
字号:
#!/bin/bash
# Scriptname: tellme
# Using the old-style test command

echo -n "How old are you? "
read age
if [ $age -lt 0 -o $age -gt 120 ]
then
	echo  "Welcome to our planet! "
	exit 1   
fi
if  [ $age -ge 0 -a $age -le 12 ]  
then
	echo "A child is a garden of verses"
elif [ $age -ge 12 -a $age -le 19 ]
then
	echo "Rebel without a cause"
elif [ $age -ge 20 -a  $age -le 29 ]
then   
	echo "You got the world by the tail!!"
elif [ $age -ge  30 -a  $age -le 39 ]
then
	echo "Thirty something..."

else
	echo "Sorry I asked"
fi

⌨️ 快捷键说明

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