I need to combine the below script. They are separately working fine. If any one condition success then need to ignore the remaining two.a=primaryb=`virtinfo -a |grep name |'awk' '{ print $3}'`if [ $a == $b ]thenecho `hostname` I'm Control Domainldm list | awk '{ print $1}'fia=`cat /etc/nodename`b=`virtinfo -a |grep name |'awk' '{ print $3}'`if [ $a = $b ]thenecho `hostname` I'm Ldomvirtinfo -a |grep Controlzoneadm list|grep -v globalfiif [ ! `/usr/bin/zonename` = 'global' ]thenecho  `hostname` im in a Local Zonefi
Combining three scripts
shell script;scripting