#!/bin/shif [ $num -eq 9 -o $num -eq 75 -o $num -eq 200 ]; then    echo do thiselif [ $num -eq 40 -o $num -eq 53 -o $num -eq 63]; then    echo do something for thiselse    echo for other do thisfiIs any other way to the shrink the expression in the if statement?Perhaps something like[ $num -eq (9,75,200) ]BTW, I don't have GNU utils on this OS.
How shrink test -eq expression with more than one var value in /bin/sh
shell;shell script;scripting
Sometimes a different construction may end up more readable:case $num in9|75|200) echo do this ;;40|53|63) echo do something for this ;;*)        echo for other do this ;;esac