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...

What is "test"? How it is used in shell scripting?

Answer Posted / madhavi

test is used to validate an expression in shell script.
for ex:in if loop ,is used as follows
if test a > b
{
#some statements
}
fi
instead of
if [ a > b ]
{
#some statements
}
fi

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of shell scripting?

1121


What is a shell script? Can you name some of its advantages?

1065


Explain about shebang?

1043


Is it possible to substitute "ls" command in the place of "echo" command?

1056


Why are there shells on the beach?

1157


What is the use of "$#" in shell scripting?

1074


What is awk in shell script?

1235


What are the zombie processes?

979


How do you create a shortcut in linux?

1215


What exactly is a shell?

1091


What is the difference between bash and shell?

1131


What are different types of shell?

931


What language is bash?

929


What language is bash written in?

998


How to set an array in linux?

1241