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 will retrieves incoming mails from different web sites

2 Answers   HCL, HP,


what do know about commands?

0 Answers   Ericsson,


Where can I find bash in linux?

0 Answers  


How do I run a shell script?

0 Answers  


To move /home/ben/memos dir in /home/bob/memos, what is the result by mv /home/ben/memos /home/bob

4 Answers  


What are linux commands?

0 Answers  


Send me some of the commands being used in linux

5 Answers   Aurobindo, Dr Reddys, IBM, Reddy Labs,


What are the ms dos commands?

0 Answers  


How do I find my hostname in linux?

1 Answers  


in unix how to change old name to new name

7 Answers   Google,


what is Bourne shell.

1 Answers   Google, HCL, Infosys,


How do you check the current system uptime in Linux?

1 Answers  


Categories