The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: Not working
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 05-11-2007
aigles's Avatar
aigles aigles is offline
Registered User
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,212
Code:
if [[ $in_seq_num != "001" && $in_seq_num != "004" && $in_seq_num != "007" ]];
then
   notice_val="103"
   notice_desc="Seq number not as exptected"
else
   notice_val="000"
   notice_desc="Success"
fi
Or Try this test syntax :
Code:
if [[ $in_seq_num != @(001|004|007) ]];
then
   notice_val="103"
   notice_desc="Seq number not as exptected"
else
   notice_val="000"
   notice_desc="Success"
fi

Jean-Pierre.
Reply With Quote