Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, Could somebody please explai

Status
Not open for further replies.

butterfm

Programmer
Feb 15, 2002
132
GB
Hi,

Could somebody please explain to me in what circumstances double square brackets should be used in conditional statemensts

e.g.

[[ .. do something .. ]]

I've not seen a single book that explains when and how they should be used. Are these ksh only ?

Much Appreciated,
Matt.
 
Thanks vlad,

It makes more sense now. I can see the fact pattern matching being useful.

Cheers,
Matt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top