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 we can set the password length in linux?
What can you tell about the tar command?
Why ls -F dev/log file output indicate as = sign at end of the file name?
What is finger command in linux?
Why we use pwd command in linux?
How to recover /etc/passwd file and /etc/shadow file?
what is a command to display top 10 users who are using Huge Space?
Write about an internal command.
You wish to print a file ‘draft’ with 60 lines to a page. What command would you use?
What does cd do in linux?
What is the command to calculate the size of a folder?
What is the bash in linux?