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 |
How will retrieves incoming mails from different web sites
what do know about commands?
Where can I find bash in linux?
How do I run a shell script?
To move /home/ben/memos dir in /home/bob/memos, what is the result by mv /home/ben/memos /home/bob
What are linux commands?
Send me some of the commands being used in linux
5 Answers Aurobindo, Dr Reddys, IBM, Reddy Labs,
What are the ms dos commands?
How do I find my hostname in linux?
in unix how to change old name to new name
what is Bourne shell.
1 Answers Google, HCL, Infosys,
How do you check the current system uptime in Linux?