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 are vim commands?
What is echo command in batch file?
What is gnu in linux?
How to hide the partition in GRUB booting? (This technique is required when you have more that one Windows system on different partitions of the same disk, let us say the first and second partitions of the first hard drive, to boot from the first partition you must hide the second one)
How can you check the amount of lines in a file?
what is emacs editor and feature........???????????????????????????
my clients are getting services from servers but how to know which client is using which service. is there any files to keep information about these? clients used ftp, nis, samba, apache, squid, nfs and mail services how to know how many users got service from server side with date,time and client system ip ?
What is file and example?
what is lilo?How it is useful in linux?
Who am I command in linux?
How do I check my system performance?
What command you use for cpio to create a backup called backup.cpio of all the users’ home dirs?