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 I check command history?
What are the commands in linux?
Which of the Commands delete the files from the /tmp directory, issued by non-root user?
Why makefile is used in linux?
Which of the following tasks cannot be accomplished with the touch command?
How do you clear the screen in linux?
What is the command to calculate the size of a folder?
What is makefile in unix?
How to hide the partition in grub booting?
What is unix finger command?
Which command is used to delete a group?
Which Command used to lock user password in Linux?
What does f mean linux?
why context switching time should be minimum? How it depends on hardware support?
What are the linux commands used in devops?