

判断一个文件是否存在
[root@localhost ~]# [ -e /root/install.log ]
[root@localhost ~]# echo $?
0 表示上条语句正确执行,非 0 表示不正确





判断一个文件是否存在
[root@localhost ~]# [ -e /root/install.log ]
[root@localhost ~]# echo $?
0 表示上条语句正确执行,非 0 表示不正确
本文标题:shell之判断
本文链接:https://www.haomeiwen.com/subject/lfijtctx.html
网友评论