当前位置:网站首页>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
边栏推荐
- Understand expectations (mean / estimate) and variances
- Clickhouse learning notes (2): execution plan, table creation optimization, syntax optimization rules, query optimization, data consistency
- YOLOV2学习与总结
- Zhiniu stock -- 03
- Kubernetes notes (V) configuration management
- After the Chrome browser is updated, lodop printing cannot be called
- The mechanical hard disk is connected to the computer through USB and cannot be displayed
- Oauth2.0 - Introduction and use and explanation of authorization code mode
- Advanced technology management - do you know the whole picture of growth?
- Migrate data from Amazon aurora to tidb
猜你喜欢

CKA certification notes - CKA certification experience post

After the Chrome browser is updated, lodop printing cannot be called

Kubernetes notes (IX) kubernetes application encapsulation and expansion

Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow

Es remote cluster configuration and cross cluster search

Kubernetes notes (10) kubernetes Monitoring & debugging

项目总结--2(Jsoup的基本使用)

Alibaba cloud OOS file upload

Fluentd facile à utiliser avec le marché des plug - ins rainbond pour une collecte de journaux plus rapide

JDBC connection database steps
随机推荐
多线程与高并发(7)——从ReentrantLock到AQS源码(两万字大章,一篇理解AQS)
Synthetic keyword and NBAC mechanism
In depth learning
輕松上手Fluentd,結合 Rainbond 插件市場,日志收集更快捷
致即将毕业大学生的一封信
Cesium Click to obtain the longitude and latitude elevation coordinates (3D coordinates) of the model surface
Mysql database
Understand the first prediction stage of yolov1
conda和pip的区别
Migrate data from Mysql to tidb from a small amount of data
Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)
Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
【系统设计】邻近服务
Kubernetes notes (V) configuration management
Pytorch dataloader implements minibatch (incomplete)
ruoyi接口权限校验
Apple submitted the new MAC model to the regulatory database before the spring conference
Yum is too slow to bear? That's because you didn't do it
Oauth2.0 - use database to store client information and authorization code
Fluentd facile à utiliser avec le marché des plug - ins rainbond pour une collecte de journaux plus rapide