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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 09-13-2007
bluemoon1 bluemoon1 is offline
Registered User
 

Join Date: Sep 2007
Posts: 53
very neat! I tested it & looks the if statement evaluates if the returning code is 0 or not, isn't it??

However, I failed to make it to check if it is non-zero- tried a few syntax with no luck... such as: if [ ! domything ], if [ domything -ne 0 ].... can you make it?;-)
Reply With Quote