霍格沃兹学院视频课笔记
weixin_39430584
这个作者很懒,什么都没留下…
展开
-
bash基础01-变量 数据类型 算数运算 逻辑运算
1、变量定义 echo hello word #hello word,echo命令用于向屏幕输出内容 a=1 echo $a #1 a=hello word echo $a #报错,a='hello word'/a="hello word" echo $a #hello word a="hello word" echo 'abc $a' #abc $...原创 2019-08-26 20:01:29 · 330 阅读 · 0 评论 -
bash基础02-选择 循环结构
1.if选择结构: if [ -e test ]; then echo exist;else not exist;fi #exist,如果test文件存在则输出exist;否则输出not exist if [ 2 -eq 2 ]; then echo true;else echo false;fi #true,-eq相等 if [ 3 -eq 2 ]; then echo t...原创 2019-08-30 09:21:35 · 251 阅读 · 0 评论