ex-10-02_if.sh
来自「Berkely的学生写的」· Shell 代码 · 共 13 行
SH
13 行
#!/bin/sh -v# Chapter 10 - Section The if Statement# This script demonstrates the use of the # if - then - elif - else - fi statementif uuencode koala.gif koala.gif > koala.uu ; then echo "Encoded koala.gif to koala.uu"elif rm koala.uu ; then echo "Encoding failed, temporary files removed."else echo "An error occured."fi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?