if then

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

  1. octopus

    Shorter expression.....

    I'm trying to wrap my head around this..... (small head). Try to have this shorter, have tried several ideas but no success. maybe some have any idea.. if [ "$vpn" = "route-up" ] && [ "$var" = "client1" ] || [ "$var" = "client2" ] || [ "$var" = "client3" ] || [ "$var" = "client4" ] || [ "$var"...