当前位置:网站首页>Shell conditional statement
Shell conditional statement
2022-07-03 06:15:00 【Bobo AI leaves work】
Compare the size ((xxxxx)) Double brackets indicate Logic ,
fi Indicates exit logic
if (($NUM1>$NUM2));then
#! /bin/bash
#compare numers
#bobo
#20210907
NUM1=100
NUM2=200
if (($NUM1>$NUM2));then
echo "this num is $NUM1 > $NUM2!"
else
echo "the num is $NUM1 < $NUM2"
fi
边栏推荐
- The win7 computer can't start. Turn the CPU fan and stop it
- 项目总结--01(接口的增删改查;多线程的使用)
- Oauth2.0 - Introduction and use and explanation of authorization code mode
- How to scan when Canon c3120l is a network shared printer
- Pytorch dataloader implements minibatch (incomplete)
- Get a screenshot of a uiscrollview, including off screen parts
- Migrate data from Mysql to tidb from a small amount of data
- The mechanical hard disk is connected to the computer through USB and cannot be displayed
- Kubernetes notes (I) kubernetes cluster architecture
- 代码管理工具
猜你喜欢

Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)

Simple understanding of ThreadLocal

Cesium 点击获取模型表面经纬度高程坐标(三维坐标)

Convolution operation in convolution neural network CNN

Oauth2.0 - explanation of simplified mode, password mode and client mode

Pytorch dataloader implements minibatch (incomplete)

phpstudy设置项目可以由局域网的其他电脑可以访问

23 design models

Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)

Support vector machine for machine learning
随机推荐
Selenium ide installation recording and local project maintenance
Understand the first prediction stage of yolov1
The programmer shell with a monthly salary of more than 10000 becomes a grammar skill for secondary school. Do you often use it!!!
Kubesphere - build MySQL master-slave replication structure
Es remote cluster configuration and cross cluster search
使用conda创建自己的深度学习环境
88. Merge two ordered arrays
Jackson: what if there is a lack of property- Jackson: What happens if a property is missing?
Understand expectations (mean / estimate) and variances
Pdf files can only print out the first page
Project summary --04
【C#/VB.NET】 将PDF转为SVG/Image, SVG/Image转PDF
Reinstalling the system displays "setup is applying system settings" stationary
Difference between shortest path and minimum spanning tree
Cesium entity (entities) entity deletion method
Kubernetes notes (VI) kubernetes storage
PMP notes
Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)
认识弹性盒子flex
项目总结--04