script is like
x=10;
y=20;
[$x-ne$y];
echo $
please give me output.
Answer Posted / 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 |
Post New Answer View All Answers
How do you know which shell I am using in linux?
What is the symbol of linux?
You attempt to delete a file called sales.mem using the rm command but the command fails. What could be the problem?
Explain about communication features in UNIX?
What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc..?
What is Syntax of any Linux command?
What is command example?
Brief about the command ff?
How do you create a text file in linux?
What is df -i command?
What is git command?
The head command writes the how many lines of a file to screen?
What does umask 022 mean?
What does mkdir mean in linux?
Why is it called bash?