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 is shell application?

1036


Explain about "s" permission bit in a file?

1124


What is a program shell?

1105


Where is bash history?

990


Is powershell a bash?

1132


How do I start a shell script?

1286


What is the command to find out users on the system?

1020


What are script files?

1075


What is option in shell script?

1064


What is a batch file used for?

1126


Given a file find the count of lines containing the word "abc".

1611


What does egrep mean?

1028


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

1118


What is path in shell script?

1141


Explain about echo command?

1148