linux - If statement with 3 checkpoints -


i have small if statement checks if filenames correct. @ first needed 2 names compare within if statement.

if [ $name == $name3 ];     qsub calculatecorrelation.sh $i $j fi 

now want compare 3 names , if correct continue script. first attempt looks not convinced way it.

if [ $name == $name3 == $name5 ];     qsub calculatecorrelation.sh $i $j $k fi 

so how can check 3 names same , continue.

i think should able this:

if [ $name == $name3 ] && [ $name3 == $name5 ]; 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -