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

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

1021


What is the symbol of linux?

1039


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

1035


Explain about communication features in UNIX?

1036


What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc..?

1120


What is Syntax of any Linux command?

1133


What is command example?

1034


Brief about the command ff?

1055


How do you create a text file in linux?

1088


What is df -i command?

986


What is git command?

950


The head command writes the how many lines of a file to screen?

1058


What does umask 022 mean?

1089


What does mkdir mean in linux?

1075


Why is it called bash?

877