Computing.Net > Forums > Unix > difference between [ and ]]

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

difference between [ and ]]

Reply to Message Icon

Name: arulactive
Date: August 31, 2009 at 01:15:39 Pacific
OS: sun solaris
CPU/Ram: 12
Product: Sun microsystems Sun fire v100 550mhz/512kb l2 cache/256mb memory/1x80gb/cd-rom/lan/solaris 8, java system web server
Subcategory: General
Tags: solaris
Comment:

Hi gurus,
did anyone know the difference between using [ and [[ in
if and while loops. I have seen some scripts using [
and others using [[. How these 2 are different while executing?.
When should we use [ and [[ ?.



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: August 31, 2009 at 17:04:38 Pacific
Reply to Message Icon

Related Posts

See More


unix help How to configure the envi...


Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: difference between [ and ]]

Differences between Ext2fs and v7 www.computing.net/answers/unix/differences-between-ext2fs-and-v7/4705.html

Differences between cpio and tar www.computing.net/answers/unix/differences-between-cpio-and-tar/3660.html

Differences between FAT32 + Unix www.computing.net/answers/unix/differences-between-fat32-unix/3121.html