一、循环 1.for循环 1)格式 基本格式 for var in list do 循环体 done 其中 list是可迭代的对象,常见的包括: 数组 $(seq n m) 表示从n到m的正整数序列 {n..m} 表示从n到m的正整数 value1 value2 value3 ... 一系列值,可以 ...
分类:
系统相关 时间:
2020-06-26 14:23:48
阅读次数:
76
增加shell脚本 #!/bin/bash n=`curl -I -s http://127.0.0.1:8088/projectName/index.jsp | grep "HTTP/1.1 200" | wc -l` if [ $n -ne 1 ] then title='projectName ...
分类:
编程语言 时间:
2020-06-26 12:54:41
阅读次数:
100
set 用来显示shell变量(包括环境变量、用户变量和函数名及其定义),同时可以设置shell选项来开启调试、变量扩展、路径扩展等开关env 用来显示和设置环境变量export 用来显示和设置导出到子shell的环境变量 每个shell有自己特有的变量(set)显示的变量,这个和用户变量是不同的, ...
分类:
系统相关 时间:
2020-06-26 10:35:27
阅读次数:
66
开机就进入命令窗口,窗口提示信息如下: generating “/run/initramfs/rdsosreport.txt”entering emergencymode. exit the shell to continuetype “journalctl” to view system logs ...
分类:
其他好文 时间:
2020-06-26 10:23:19
阅读次数:
143
?所谓大数据(Big Data),就是需要处理的数据量非常巨大,已经达到了 TB、PB 甚至 EB、ZB 级别,需要成千上万块硬盘才能存储。传统的技术手段在大数据面前不堪一击,只能探索一套新的解决方案。 这套《大数据技术与应用教程》对大数据处理过程中涉及的各种关键技术做了详细的介绍,包括大数据思维、 ...
分类:
其他好文 时间:
2020-06-26 01:29:48
阅读次数:
95
#!/usr/bin/env sh for ((x=1;x<10;x++));do for ((y=1;x>=y;y++));do printf "${y}x${x}=$(expr ${x} \* ${y}) " done echo -e "\n" done ...
分类:
系统相关 时间:
2020-06-25 23:25:07
阅读次数:
86
# 计算器: C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr name= # mSurface=Surface(name=com.youba.calculate/com.youba.calculate.MainActivity ...
分类:
移动开发 时间:
2020-06-25 21:49:14
阅读次数:
97
# 计算器: C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr name= # mSurface=Surface(name=com.youba.calculate/com.youba.calculate.MainActivity ...
分类:
移动开发 时间:
2020-06-25 21:41:10
阅读次数:
94
# 计算器: C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr name= # mSurface=Surface(name=com.youba.calculate/com.youba.calculate.MainActivity ...
分类:
移动开发 时间:
2020-06-25 19:52:42
阅读次数:
127
1.语法格式 1.1 最基本的格式 if [ condition ];then 符合if时执行的语句 fi 1.2 扩展格式 if [ condition ];then 符合该if时执行的语句 elif [ condition ];then 符合该if时执行的语句 else 都不符合时执行的语句 f ...
分类:
系统相关 时间:
2020-06-25 19:51:49
阅读次数:
70