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.

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

What does top do in linux?

1068


Explain about system and user utilities?

1012


what is the roles and responsibilities in linux system admin having 2yrs exp..?

4249


How do I check dns entry?

1078


How does diff command work?

1023


What is grep command in linux with examples?

1105


How do you copy in terminal?

1087


What is in mkdir command?

1193


Brief about the command nn?

1096


What is netstat command in linux?

1105


What is tail command in linux?

1111


How do you grep?

1006


What are the commands used in command prompt?

1052


What is mkdir p linux?

1125


How do you know which shell I am using in linux?

1120