ex-10-03_test.sh

来自「Berkely的学生写的」· Shell 代码 · 共 19 行

SH
19
字号
#!/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 + =
减小字号Ctrl + -
显示快捷键?