Unix/Linux Go Back    



Exit status of grep

Shell Programming and Scripting




Kindly Note - This is a Single User Post by Forum Member malcomex999 Regarding:
Exit status of grep.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 03-09-2010
malcomex999 malcomex999 is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 10 November 2015, 2:16 AM EST
Location: In the beautiful World...
Posts: 511
Thanks: 10
Thanked 29 Times in 29 Posts
change the if condition as below...


Code:
if  [ $isVoid -eq 0 ]
then
   echo "Is Void matched" $isVoid
fi

= is an assignment operator