Sobes.tech
Junior

Bash'ta 'veya' operatörü ile nasıl koşul yazılır?

sobes.tech yapay zeka

AI'dan gelen yanıt

if [ kosul1 -o kosul2 ]; then
  # Bir şeyler yap
fi

# veya
if [[ kosul1 || kosul2 ]]; then
  # Bir şeyler yap
fi