![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
Evillla
努力做一个可爱的程序员
展开
-
Linux Shell编程 (从入门到放弃) 1、 变量及简单使用
//测试环境 Ubuntu18.0+ 虚拟机 终端 //输入 touch helloshell //创建一个脚本 gedit helloshell //使用文本编辑器打开脚本 #!/bin/bash //第一行是shell脚本的固定何时 后三行是注解 #Filename:helloshell #auto echo hello world! # by authors Evila 2019 ...原创 2019-04-16 11:09:52 · 197 阅读 · 0 评论 -
Linux Shell 编程 IF条件语句
if (表达式) 语句1 else 语句2 fi 1、case 1 : 测试数字大小 #!/bin/bash #auto if test #by authors evila NUM1=100 NUM2=200 if(($NUM1 > $NUM2));then echo "This $NUM1 greater $NUM2 !" else echo "This $NUM2 greate...原创 2019-04-16 13:55:27 · 1123 阅读 · 0 评论