Red de conocimiento informático - Problemas con los teléfonos móviles - Programación Shell: ¡La increíble declaración if anidada en programación Shell!

Programación Shell: ¡La increíble declaración if anidada en programación Shell!

Simplemente cámbielo a esto:

RATEMIN1=40

RATEMIN5=60

if [ $RATEMIN1 -le 50 ] amp;amp [ $RATEMIN5ge 50 ]

entonces

para i en 1 2 3 4 5

hacer

eval tmp=$\{RATEMIN$i}

si iftmp=\${RATEMIN$i}

si si tmp=\${RATEMIN$i}