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

Is llvm a virtual machine?

1019


What is s in permission linux?

1075


What does cd do in linux?

1179


Which command will show you free/used memory?

1006


What is cd command used for?

1088


What is cmake in linux?

1164


How do I run multiple commands in linux?

1061


You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose

1052


What are the ms dos commands?

1072


Explain the free command.

1019


You want to know how many lines in the kickoff file contains ‘prize’. Which of the following commands will produce the desired results?

1011


How do you save a file in linux?

1142


What is the fastest way to enter a series of commands from the command-line?

1070


What is the difference between command ‘ping’ and ‘ping6’?

1128


What is git command?

997