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
Is llvm a virtual machine?
What is s in permission linux?
What does cd do in linux?
Which command will show you free/used memory?
What is cd command used for?
What is cmake in linux?
How do I run multiple commands in linux?
You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose
What are the ms dos commands?
Explain the free command.
You want to know how many lines in the kickoff file contains ‘prize’. Which of the following commands will produce the desired results?
How do you save a file in linux?
What is the fastest way to enter a series of commands from the command-line?
What is the difference between command ‘ping’ and ‘ping6’?
What is git command?