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

Write a command that will do the following: -look for all files in the current and subsequent directories with an extension c,v -strip the,v from the result (you can use sed command) -use the result and use a grep command to search for all occurrences of the word orange in the files.

1324


What is the difference between rmdir and rm r?

1083


What does ls mean in linux?

987


Which Command used to lock user password in Linux?

1010


You wish to restore the file memo.ben which was backed up in the tarfile mybackup.tar. What command should you type?

883


What does cd do in linux?

1108


How can I type in cmd?

870


What does grep grep do?

867


What is phony in makefile?

953


What is bash command?

957


Find command can search for files by

897


What is the use of ls command?

985


How do you do nslookup?

950


What is the purpose output of cd command?

994


What is difference between comm and CMP command?

958