当前位置:网站首页>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
边栏推荐
- Oracle Database Introduction
- 88. 合并两个有序数组
- Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
- How to scan when Canon c3120l is a network shared printer
- Characteristics and isolation level of database
- Difference between shortest path and minimum spanning tree
- Jedis source code analysis (II): jediscluster module source code analysis
- About the difference between count (1), count (*), and count (column name)
- After the Chrome browser is updated, lodop printing cannot be called
- Kubesphere - build Nacos cluster
猜你喜欢
Migrate data from Mysql to tidb from a small amount of data
多线程与高并发(7)——从ReentrantLock到AQS源码(两万字大章,一篇理解AQS)
Detailed explanation of contextclassloader
使用 Abp.Zero 搭建第三方登录模块(一):原理篇
Zhiniu stock -- 03
【系统设计】邻近服务
Oauth2.0 - use database to store client information and authorization code
IE browser flash back, automatically open edge browser
Oauth2.0 - user defined mode authorization - SMS verification code login
深入解析kubernetes controller-runtime
随机推荐
Alibaba cloud Alipay sandbox payment
.NET程序配置文件操作(ini,cfg,config)
Decision tree of machine learning
MySQL带二进制的库表导出导入
BeanDefinitionRegistryPostProcessor
Kubernetes cluster environment construction & Deployment dashboard
Apple submitted the new MAC model to the regulatory database before the spring conference
Why should there be a firewall? This time xiaowai has something to say!!!
IE browser flash back, automatically open edge browser
Convolution operation in convolution neural network CNN
arcgis创建postgre企业级数据库
Simple solution of small up main lottery in station B
YOLOV2学习与总结
Oracle Database Introduction
项目总结--04
Kubernetes notes (III) controller
PHP用ENV获取文件参数的时候拿到的是字符串
Get a screenshot of a uiscrollview, including off screen parts
Cesium entity (entities) entity deletion method
Pytorch dataloader implements minibatch (incomplete)