LMLPHP后院

shell 逻辑运算符

逻辑运算符

  • && 与
  • || 或

示例:

if [ -d $HOME ] && [ -f $HOME/work ]
then
  //
fi
2025-07-01 06:38:40 1751323120 0.010094