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 |
What is a makefile in c?
What does in makefile do?
Why echo is used in linux?
Which two commands can you use to delete directories?
Did you ever write any inerface files / profile file to support unix environment setup ?
How do you create a text file in linux?
What is an inode?
3 Answers ProdEx Technologies,
How do I change directories in linux command line?
How do I clear my run history?
In /boot/grub/grub.conf file there is a line kernel /vmlinuz-version ro root=/dev/sda2, What is the meaning of "/" before vmlinuz? Pls explain?
How do you open a command prompt when issuing a command?
What is build process?