Shell中if -n 与 -z的区别 Post author:xfxia Post published:2023年10月9日 Post category:其他 if [ str1 = str2 ] 当两个串有相同内容、长度时为真 if [ str1 != str2 ] 当串str1和str2不等时为真 if [ -n str1 ] 当串的长度大于0时为真(串非空) if [ -z str1 ] 当串的长度为0时为真(空串) if [ str1 ] 当串str1为非空时为真 你可能也喜欢 【推荐算法】DSSM双塔模型:Deep Structured Semantic Models for Web Search using Clickthrough Data catkin_make自定义依赖包 cool-admin框架后端使用-node版本,三种方式中的repository方式使用 springboot+quartz调度持久化 解决ftp登录问题:500 OOPS: cannot change directory:/home/xxx 500 OOPS: child died maven.plugins:maven-archetype-plugin:RELEASE:generate AudioDVP复现总结 移动机器人运动控制算法入门 chromium源码分析系列:入门程序:content_shell 修改element组件样式不生效问题 恶意代码防范-熟悉给定工具 WebMagic 简单实例 正则表达试,获取指定id ,class 对应标签的内容 CentOS6国内yum源失效解决方案 Acwing 每日打卡 下载附件的几种方式 2021杭电多校第八场补题 pdfbox renderImageWithDPI pdf转image 线程、进程与jvm之间的关系 利用 sys.sysprocesses 检查 Sql Server的阻塞和死锁