Linux Shell中判断某个环境变量是否存在以及获取某个环境变量的值

Shell中判断某个环境变量是否存在以及获取某个环境变量的值 #!/bin/bash   if   [   $TOMCAT_HOME   ];  then  echo   "not   found "  else  tar   xvf   /home/a.tar  fi echo   $TMPPATH  #直接用'#'+环境变量名在shell中使用环境变量的值 if   [   -z   $TMP
相关文章
相关标签/搜索