随笔分类 - shell
1
摘要:!/bin/bash # #下面是字体输出颜色及终端格式控制 #字体色范围:30-37 echo -e "\033[30m 黑色字 \033[0m" echo -e "\033[31m 红色字 \033[0m" echo -e "\033[32m 绿色字 \033[0m" echo -e "\033
阅读全文
摘要:For循环基本语法 #语法1 for 变量名 in 值1 值2 值3。。。 do 程序 done #语法二 for ((初始值;循环控制条件;变量变化)) do 程序 done while 循环 while [ 条件判断 ] do 程序 done Case分支 case $变量名 in "值1")
阅读全文
摘要:打开vi file 按ctrl+shift+c复制所有文件到剪贴板 打开notepad++文件,按 ctrl+c去粘贴
阅读全文
摘要:操作系统:win7 虚拟机:Virtual box with Ubuntu13.10 WEB服务器: Nginx WEB服务器发布目录:/usr/local/nginx/html/c 测试文件:list.txt 步骤: 1.新建一个shell脚本文件auto_html.sh.编辑内容如下: #!/b
阅读全文
摘要:说明: CSV 文件:cmd_list1.csv testcase:对应test case id function:对应test case的标题 interfacenotes:对应bsp节点名称 cmd:对应bsp命令 needtest:【yes】执行这个case,【no】表示跳过不执行这个case
阅读全文
摘要:1 #!/bin/bash 2 ############################################################### 3 #Author :Bing # 4 #Create Time:11/26/2019 # 5 ######################
阅读全文
摘要:1 #!/bin/bash 2 path="/sys/devices/platform/soc/fd880000.i2c-pld/i2c-0/i2c-4/i2c-15/15-0060" 3 arry=(module_interrupt module_present)#定义数组元素,可以扩展为多个,或
阅读全文
摘要:1 #!/bin/bash 2 ################################################################################# 3 # Copyright(C) 2019 xxx Ltd. All rights reserved.
阅读全文
摘要:1 !/bin/bash 2 path="/sys/devices/platform/soc/fd880000.i2c-pld/i2c-0/i2c-4/i2c-15/15-0060" 3 4 f_log=$0 #定义变量f_log,并且将脚本名$0赋值给f_log 5 for ((j=37;j<=6
阅读全文
摘要:1 #!/bin/bash 2 ####################################################################### 3 #Created by: Bing # 4 #Create time:11/11/2019 # 5 #Applied P
阅读全文
摘要:1 #!/bin/bash 2 ############################ 3 #Author:Bing 4 #Create time:3/31/2017 5 ############################ 6 i=0 7 count=0 8 startdate=`date`
阅读全文
1
浙公网安备 33010602011771号