gpt4 book ai didi

unix - -z 在 unix 中的工作

转载 作者:行者123 更新时间:2023-12-04 02:59:17 25 4
gpt4 key购买 nike

if [ -z "${ABC}" ] 
then
LOGDIR=`${JAVA_HOME}/bin/java -cp ${a}/aim.jar my.app.util.GetLogDir "${rsp}"`

有人可以帮我弄这个吗。这到底是做什么的。
它是否检查 abc 是否存在以及调用 GetLogDir 的 main 是否带有一些参数?

最佳答案

   -z string
True if the length of string is zero.

检查是否 ABC是空的。如果是,那么命令将被执行,结果将在 LOGDIR 中。 .

关于unix - -z 在 unix 中的工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12825401/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com