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 does case sensitivity affect the way you use commands?
How can you check the amount of lines in a file?
How do you copy in linux terminal?
What is mkdir m in linux?
You read an article that lists the following command: dd if=/dev/fdo bs=512 of=/new what does this accomplish?
please advice me what i have to prepare for NIC Exam(22-feb- 09). send me the question pattern for the 2 hrs exam. please sent it to manivannan_it15@yahoo.co.in
Which command is used to review boot messages?
Which is the required command for checking the file system?
Is makefile a shell script?
How do you kill a process in linux?
What is the role of case sensitivity in affecting the way commands are used?
What is clang llvm?
Does cp overwrite?
In order to improve your system’s security you decide to implement shadow passwords. What command should you use?
Explain the ‘ls’ command in linux