![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Question
For example res=`some command`
elif [ "X${res}" != "X1" ]; What does this syntax mean? I mean exactly "Xvar" "Xval" |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
in short.... if the value of the variable 'res' is not '1'
|
|
#3
|
||||
|
||||
|
I need not in short! what is the difference between [ "$res" != 1 ] [ "X${res}" != "X1" ]?? |
||||
| Google The UNIX and Linux Forums |