The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-22-2008
mirusnet's Avatar
Registered User
 

Join Date: Dec 2007
Posts: 139
Question

For example res=`some command`

elif [ "X${res}" != "X1" ];

What does this syntax mean?
I mean exactly "Xvar" "Xval"
Reply With Quote
Forum Sponsor
  #2  
Old 01-22-2008
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,029
in short.... if the value of the variable 'res' is not '1'
Reply With Quote
  #3  
Old 01-22-2008
mirusnet's Avatar
Registered User
 

Join Date: Dec 2007
Posts: 139
Quote:
Originally Posted by vgersh99 View Post
in short.... if the value of the variable 'res' is not '1'

I need not in short!
what is the difference between [ "$res" != 1 ] [ "X${res}" != "X1" ]??
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0