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   -   Original Discussion by prasbala
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...

if  [ $isVoid -eq 0 ]
   echo "Is Void matched" $isVoid

= is an assignment operator