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

Is shell scripting useful?

1024


What are the different commands available to check the disk usage?

977


What is shift command in shell script?

1008


What is the fastest scripting language?

983


Why do we use shell scripting?

974


What is shell application?

982


What is a file basename?

1031


What are zombie processes?

1010


Suppose you execute a command using exec, what will be the status of your current process in the shell?

1050


What is shell scripting used for?

976


How to redirect both standard output and standard error to the same location?

1148


What is difference between bash and shell?

1067


What is shell terminal?

936


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

3459


I want to connect to a remote server and execute some commands, how can I achieve this?

1009