1. 流程控制语句if基本概述
01. 单分支结构
if [ 如果你有房 ];then 我就嫁给你fi
#示例
[root@qiudao ~/shell]# cat if-1.sh#!/usr/bin/bashif which ls;thenecho "ok"fi
#执行脚本
[root@qiudao ~/shell]# sh if-1.sh/usr/bin/lsok
标签:语句,bin,流程,qiudao,sh,概述,usr
From: https://www.cnblogs.com/qq2857519024/p/16965132.html