script is like
x=10;
y=20;
[$x-ne$y];
echo $
please give me output.
Answers were Sorted based on User's Feedback
Answer / srikanth
The Question is like this
Question:
x=10;
y=20;
[ $x -ne $y ]
echo $?
Ans is 0, because the condition x value not equal to y
value. It is true. so... that value is 0. If the conditions
is false then it displays output 1.
Is This Answer Correct ? | 14 Yes | 0 No |
What is build process?
Where is command history stored in linux?
Brief about finger username?
How do display error messages instantly when command fails?
What is $$ in shell script?
How do make computer faster?
You attempt to delete a file called sales.mem using the rm command but the command fails. What could be the problem?
How do you rate yourself in unix(if 0 is novice and 10 is sys admin)?
what is mean by system calls
How do I know my shell?
What is filter command in unix?
What is p in mkdir?