shell中的逻辑判断if
-gt >
-lt <
-eq =
-ne !=
-ge >=
-le <=
if [ -z "$a" ] ,if [ -z 01.sh]
变量需要添加双引号,文件则不需要
-w搜索单词user1 -wq搜索单词user1不打印在屏幕中
本文来自博客园,作者:你好!2022,转载请注明原文链接:https://www.cnblogs.com/jzhg/articles/8557765.html
-gt >
-lt <
-eq =
-ne !=
-ge >=
-le <=
if [ -z "$a" ] ,if [ -z 01.sh]
变量需要添加双引号,文件则不需要
-w搜索单词user1 -wq搜索单词user1不打印在屏幕中
本文来自博客园,作者:你好!2022,转载请注明原文链接:https://www.cnblogs.com/jzhg/articles/8557765.html