LMLPHP后院

shell 逻辑运算符

逻辑运算符

  • && 与
  • || 或

示例:

if [ -d $HOME ] && [ -f $HOME/work ]
then
  //
fi
2025-03-26 22:04:41 1742997881 0.010213