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 |
How would you find whether a remote server is up or not?
What are the basic commands for user management?
What is file and example?
How to root mirror in Linux? How to replace mirrored hdd in case of failure?
You wish to print a file ‘draft’ with 60 lines to a page. What command would you use?
What does uname do in linux?
Explain about system and user utilities?
What is command example?
What is the difference between diff and cmp command in unix?
What could be the problem when a command that was issued gave a different result from the last time it was used?
How do you limit memory usage for commands?
what are the features of Linux?