Arrays 在C shell中,如何使用;如果;检查数组是否包含特定变量的语句?
我想使用“if”来检查数组是否包含特定的变量。 比如:Arrays 在C shell中,如何使用;如果;检查数组是否包含特定变量的语句?,arrays,shell,if-statement,variables,csh,Arrays,Shell,If Statement,Variables,Csh,我想使用“if”来检查数组是否包含特定的变量。 比如: if ($var exist in $array) then //execute commands endif
if ($var exist in $array) then
//execute commands
endif