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

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -