script is like
x=10;
y=20;
[$x-ne$y];
echo $
please give me output.

Answers were Sorted based on User's Feedback



script is like x=10; y=20; [$x-ne$y]; echo $ please give me output...

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

script is like x=10; y=20; [$x-ne$y]; echo $ please give me output...

Answer / sureshreddy

error: $ command not found.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Linux Commands Interview Questions

What is build process?

0 Answers  


Where is command history stored in linux?

0 Answers  


Brief about finger username?

0 Answers  


How do display error messages instantly when command fails?

2 Answers   Satyam,


What is $$ in shell script?

0 Answers  






How do make computer faster?

0 Answers  


You attempt to delete a file called sales.mem using the rm command but the command fails. What could be the problem?

0 Answers  


How do you rate yourself in unix(if 0 is novice and 10 is sys admin)?

2 Answers   HP,


what is mean by system calls

4 Answers   Infotech,


How do I know my shell?

0 Answers  


What is filter command in unix?

0 Answers  


What is p in mkdir?

0 Answers  


Categories