2021年9月3日
摘要: if 格式1: if 判断条件 then 判断为true执行的代码 fi 格式2: if 判断条件 then 判断为true执行的代码 else 判断为false执行的代码 fi 格式3: if 判断条件 then 判断为true执行的代码 elif 判断条件 then 判断为true执行的代码 。 阅读全文
posted @ 2021-09-03 20:08 学海无涯,书山有路 阅读(35) 评论(0) 推荐(0)
摘要: shell是操作linux的桥梁 创建: 后缀为.sh的文件 编写: 头部注释为#!/bin/sh或者#!/bin/bash(注释可写可不写,建议写上) 运行: 1.通过sh命令执行 例如:sh helloworld.sh 2.通过bash命令执行 例如:bash helloworld.sh 3.通 阅读全文
posted @ 2021-09-03 20:04 学海无涯,书山有路 阅读(35) 评论(0) 推荐(0)