当前位置:网站首页>shell脚本
shell脚本
2022-08-01 21:15:00 【wuyunbilige66】
一:Shell介绍
1:什么是shell脚本
二:Shell脚本的规则
1:变量的规则
2:脚本的命名格式
3:脚本的起始行格式
4:脚本输入输出格式
5: 脚本的调用
6:参数传递

7:比较运算符和逻辑运算符
(1)比较运算符(**数字)**
-eq 比较是否相等
8:if语句

9:case规则

10:For循环
格式:

11:While循环

三:Shell脚本的函数
1:定义格式
2:函数中的参数
使用$n来接收数据
3:函数中的返回值
Shell中函数中默认存在返回值
边栏推荐
- Taobao's API to get the list of shipping addresses
- Get started with Grafana in 15 minutes
- Transplant MQTT source code to STM32F407 development board
- C专家编程 第1章 C:穿越时空的迷雾 1.2 C语言的早期体验
- tiup mirror init
- C陷阱与缺陷 第7章 可移植性缺陷 7.10 首先释放,然后重新分配
- C Pitfalls and Defects Chapter 5 Library Functions 5.5 Library Function Signal
- C Pitfalls and Defects Chapter 7 Portability Defects 7.9 Case Conversion
- 方舟开服需要知道的那些事
- Pytorch框架学校记录11——搭建小实战完整细节
猜你喜欢
【中文树库标记---CTB】
Transplant MQTT source code to STM32F407 development board
职场如象棋,测试/开发程序员如何突破成长瓶颈期?
Jmeter实战 | 同用户重复并发多次抢红包
TP5-NPs负载噻吩类化合物TP5白蛋白纳米粒/阿魏酸钠新糖牛血清蛋白纳米粒
响应式织梦模板美容整形类网站
对C语言结构体内存对齐的理解
Based on FPGA in any number of bytes (single-byte or multibyte) serial port (UART) to send (including source engineering)
2022年秋招,软件测试开发最全面试攻略,吃透16个技术栈
写给刚进互联网圈子的人,不管你是开发,测试,产品,运维都适用
随机推荐
XSS漏洞
ISC2022 HackingClub white hat summit countdown 1 day!Most comprehensive agenda formally announced!Yuan universe, wonderful!
C陷阱与缺陷 第8章 建议与答案 8.1 建议
微服务负载均衡器Ribbon
响应式织梦模板美容整形类网站
附录A printf、varargs与stdarg A.3 stdarg.h ANSI版的varargs.h
C陷阱与缺陷 第7章 可移植性缺陷 7.11 可移植性问题的一个例子
人工智能可信安全与评测
Pytorch框架学习记录10——线性层
[译] 容器和 Kubernetes 中的退出码完整指南
漏洞分析丨HEVD-0x6.UninitializedStackVariable[win7x86]
Pytorch框架学习记录8——最大池化的使用
记录第一次给开源项目提 PR
C Pitfalls and pitfalls Appendix B Interview with Koenig and Moo
Graph adjacency matrix storage
C Expert Programming Chapter 1 C: Through the Fog of Time and Space 1.1 The Prehistoric Phase of the C Language
C Expert Programming Chapter 1 C: Through the Fog of Time and Space 1.2 Early Experience of C Language
C陷阱与缺陷 第7章 可移植性缺陷 7.6 内存位置0
C Pitfalls and Defects Chapter 7 Portability Defects 7.11 An Example of a Portability Problem
Get started with Grafana in 15 minutes