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 I check command history?

1056


What are the commands in linux?

1022


Which of the Commands delete the files from the /tmp directory, issued by non-root user?

1082


Why makefile is used in linux?

1091


Which of the following tasks cannot be accomplished with the touch command?

937


How do you clear the screen in linux?

1020


What is the command to calculate the size of a folder?

1032


What is makefile in unix?

1082


How to hide the partition in grub booting?

1078


What is unix finger command?

1003


Which command is used to delete a group?

1177


Which Command used to lock user password in Linux?

1064


What does f mean linux?

961


why context switching time should be minimum? How it depends on hardware support?

1799


What are the linux commands used in devops?

1057