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 |
Why we use pwd command in linux?
what is jumbi process?
How do I check disk space in bash?
How many cmd commands are there?
How do I test my cpu speed?
how many hard disks can i able to connect to desktop pc and server (IDE & SATA) pls send this ans to my mail : ping2pavan@gmail.com
What is sudo bash command?
What could possibly be the problem when a command that was issued gave a different result from the last time it was used?
What is $$ in shell script?
what are the init levels in Linux?
What does cd – command do?
Explain about sh?