123456789101112131415161718
set variable = sc# Variante 1echo $variable | grep -q ^scif ($? == 0) then echo yeselse echo noendif# Variante 2switch ("$variable")case "sc*": echo yes breakswdefault: noendsw