摘要: 一、shell脚本中的逻辑判断 格式1:if 条件 ; then 语句; fi 格式2:if 条件; then 语句; else 语句; fi 格式3:if …; then … ;elif …; then …; else …; fi 逻辑判断表达式:if [ $a -gt $b ]; if [ $a 阅读全文
posted @ 2018-05-06 17:50 Stripling悟 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 一、 shell脚本介绍 shell是一种脚本语言 aming_linux blog.lishiming.net 可以使用逻辑判断、循环等语法 可以自定义函数 shell是系统命令的集合 shell脚本可以实现自动化运维,能大大增加我们的运维效率 二、shell脚本结构和执行 开头需要加#!/bin 阅读全文
posted @ 2018-05-06 16:55 Stripling悟 阅读(319) 评论(0) 推荐(0) 编辑