shell编程--流程控制for,do-while,if-then,break,continue,case等
2.5流程控制2.5.1if语法1、语法格式ifconditionthenstatements[elifconditionthenstatements...][elsestatements]fi2、示例#!/bin/bashread-p"pleaseinputyourname:"NAME###read命令用于从控制台读取输入数据printf'%s\n'$NAMEif[$NAME=root]##注意