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


Please Help Members By Posting Answers For Below Questions

How does case sensitivity affect the way you use commands?

659


How can you check the amount of lines in a file?

543


How do you copy in linux terminal?

520


What is mkdir m in linux?

543


You read an article that lists the following command: dd if=/dev/fdo bs=512 of=/new what does this accomplish?

563






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

1901


Which command is used to review boot messages?

560


Which is the required command for checking the file system?

542


Is makefile a shell script?

554


How do you kill a process in linux?

554


What is the role of case sensitivity in affecting the way commands are used?

620


What is clang llvm?

586


Does cp overwrite?

569


In order to improve your system’s security you decide to implement shadow passwords. What command should you use?

536


Explain the ‘ls’ command in linux

556