归档
善良比聪明更重要
10
25
Shell 脚本条件判断详解 Shell 脚本条件判断详解
条件判断是 Shell 脚本流程控制的基石。本文系统整理 if 语句的基本语法、[ ] 中的各类测试条件,以及 (( )) 和 [[ ]] 这两种高级写法,并附上常见用法示例。 基本语法if [ command ]; then 符合
2020-10-25
18
Shell 基础语法:变量、条件、循环与函数 Shell 基础语法:变量、条件、循环与函数
Shell 脚本是 Linux 运维和日常开发中最常用的自动化工具。本文整理 Shell 最基础的语法知识:变量的定义与引用、字符串操作、条件判断、循环、函数,以及一个脚本究竟有哪几种执行方式、它们之间有什么区别。 变量的定义与引用变量名由
2020-10-18
11
A Guided Tour A Guided Tour
A Guided TourIt’s time to take our tour. The table below lists some interesting places to explore. This is by no means a
2020-10-11
04
Looking Around Looking Around
Looking AroundNow that you know how to move from working directory to working directory, we’re going to take a tour of y
2020-10-04