The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-01-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,289
Try
Code:
if [[ "${Nbr_BD_Link}" != "0" ]] ; then
Are you sure that the value of this variable will ever be 0 or do you mean if the value is null in terms of empty? Because then you might want to test with -z or if value is "".

This might be interessting for you:
Bourne/Korn Shell Coding Conventions at OpenSolaris.org