当前位置:网站首页>The difference between single bracket and double bracket in shell
The difference between single bracket and double bracket in shell
2022-06-22 09:11:00 【Commander in chief (commander in chief)】
The difference between brackets and double brackets
Single bracket test The command is to perform word separation on variables , When the variable value contains a white space character , To enclose variables in quotation marks ; And double bracketed test The command does not word separate variables .
[[email protected] ~]# name="hello"
[[email protected] ~]# [ $name = "hello" ]
[[email protected] ~]# echo $?
0
[[email protected] ~]# [[ $name = "hello" ]]
[[email protected] ~]边栏推荐
- 字符串与内存操作函数详解与模拟实现
- Troubleshooting various errors when Navicat for MySQL connects to MySQL database
- Hashtable source code analysis, collections Synchronizedmap parsing
- Deep learning - (1) RESNET implementation
- 无线路由攻击和WiFi密码破解实战[渗透技术]
- try/finally --return那些事
- cocoscreator编译报错记录 Could not write cache value 。。。.gradle\daemon\4.10.3\regi
- C语言刷题 | 判断某年是否只闰年(15)
- The third-party libraries commonly used in golang development are not the most complete, but more complete
- Read all files under the folder in the jar package
猜你喜欢

Byte/byte?别搞晕了!

It is hoped that more and more women will engage in scientific and technological work

字符串与内存操作函数详解与模拟实现

Guide to quick withdrawal and withdrawal of us and Hong Kong stocks
![Wireless routing attack and WiFi password cracking practice [penetration technology]](/img/b9/3551630c128e03731a956c6a6502e2.jpg)
Wireless routing attack and WiFi password cracking practice [penetration technology]

np. Arange and np Linspace nuances (data overflow problem)

np.arange与np.linspace细微区别(数据溢出问题)

PHP login registration page

嵌入式开发专业术语概念汇总
![Ten ways to write ABC by three different threads [concurrent programming JUC]](/img/81/37523bada219fa54eab5a0dffb5a9c.jpg)
Ten ways to write ABC by three different threads [concurrent programming JUC]
随机推荐
Ten ways to write ABC by three different threads [concurrent programming JUC]
Development error reporting record
==经典面试题
【Tensorboard】所有雷区都踩,一文解决你所有问题
国外十款免费开源PHP网店程序介绍
Solidity from introduction to practice (6)
Two threads execute i++ 100 times respectively, and the possible values obtained
Didi's two-sided summary
My first go program
Interview shock 59: can there be multiple auto increment columns in a table?
pip3 install xxx报错:Command 'lsb_release -a' returned non-zero exit status 1.
接口抽象类的比较
When easypoi imports the secondary header data of an excel file, the data in the first column of the @excelentity entity class is null
traefik ingress实践
Luogu p4292 [wc2010] reconstruction plan
Volumedetect of ffmpeg
C# 进程如何使用非静态方法
Express bird of Express query demonstration code (php+curl)
How did the Delphi labs, the master of economic models behind axie and Luna, come into being?
版本问题导致“无法定位程序输入点OPENSSL_sk_new_reserve于动态链接库C:\Users...\libssl-1_1-x64.dll”