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
What does top do in linux?
Explain about system and user utilities?
what is the roles and responsibilities in linux system admin having 2yrs exp..?
How do I check dns entry?
How does diff command work?
What is grep command in linux with examples?
How do you copy in terminal?
What is in mkdir command?
Brief about the command nn?
What is netstat command in linux?
What is tail command in linux?
How do you grep?
What are the commands used in command prompt?
What is mkdir p linux?
How do you know which shell I am using in linux?