Newbie-ish question about ( [ and [[
- From: "Michael" <pweber7@xxxxxxxxxxxx>
- Date: 19 Dec 2006 13:47:56 -0800
I guess I'm a little dense, but I just don't get it.
When, and most importantly why do you use ( [ and [[ in shell scripts?
I'm trying to construct a simple:
if ( some-test-goes-here ) or [ some-test-goes-here ] or maybe even [[
some-test-goes-here ]]
then
blah
fi
construct and I am not sure when or why to use one of the three
different kinds of brackets.
Can someone point me to a resource?
Thanx!
.
- Follow-Ups:
- Re: Newbie-ish question about ( [ and [[
- From: scott . oldre
- Re: Newbie-ish question about ( [ and [[
- From: Kaz Kylheku
- Re: Newbie-ish question about ( [ and [[
- From: Chris F.A. Johnson
- Re: Newbie-ish question about ( [ and [[
- From: Icarus Sparry
- Re: Newbie-ish question about ( [ and [[
- Prev by Date: Re: grepping two patterns using &&
- Next by Date: Re: Newbie-ish question about ( [ and [[
- Previous by thread: use of SED in script
- Next by thread: Re: Newbie-ish question about ( [ and [[
- Index(es):
Relevant Pages
|