📄 ex-10-03_test.sh
字号:
#!/bin/sh -v# Chapter 10 - Section Using Test# This script demonstrates the use of the # test or [ commandif [ -z "$FRUIT_BASKET" ] ; then echo "Your fruit basket is empty" ; else echo "Your fruit basket as the following fruit: $FRUIT_BASKET"fiif [ "$FRUIT" = apple ] ; then echo "An apple a day keeps the doctor away."else echo "You must like doctors, your fruit $FRUIT is not an apple."fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -