Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How would you find whether a remote server is up or not?

8 Answers   HP,


What are the basic commands for user management?

0 Answers  


What is file and example?

0 Answers  


How to root mirror in Linux? How to replace mirrored hdd in case of failure?

1 Answers   Siemens,


You wish to print a file ‘draft’ with 60 lines to a page. What command would you use?

0 Answers  


What does uname do in linux?

0 Answers  


Explain about system and user utilities?

0 Answers  


What is command example?

0 Answers  


What is the difference between diff and cmp command in unix?

0 Answers  


What could be the problem when a command that was issued gave a different result from the last time it was used?

0 Answers  


How do you limit memory usage for commands?

0 Answers  


what are the features of Linux?

2 Answers  


Categories