The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-30-2008
khushboo khushboo is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 3
How to fetch variable value in if block and to compare it with certain string

Hi,

I am trying to execute this command

if [ `$exception_info | grep "Exception if any" > /dev/null 2>&1; echo $?` -eq 0 ]; then

but getting error .Some problem with reteriving the value of $exception_info.
Please help.Its urgent.

thanks