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 pwd in linux command?
What is FC command?
Where is command history stored in linux?
What is 9 in kill?
What is iptables command in linux?
Is llvm a compiler?
Write a command that will look for files with an extension "c", and has the occurrence of the string "apple" in it.
How do I remove a soft link in linux?
What are the files to be used in the network installation of linux os?
1. Why "d" is postfix in almost every service name of Linux like httpd, dhcpd? 2. how to restrict su & ssh services for some users? 3. how can we configure a default gateway for 10 n/w cards in a server?
What are the mv command options?
What command should you use to check the number of files and disk space used and each user’s defined quotas?