On Wed, Mar 24, 2010 at 5:31 AM, Pushparaj Shetty <[email protected]> wrote:
> Thanks. It worked for me. But why "$a"? we use " " for string constants not
> for variables right?

To avoid problems with string variables having spaces or newline characters.


Sharad

Ref:
Section "The basic rules of conditions",
http://www.linuxtutorialblog.com/post/tutorial-conditions-in-bash-scripting-if-statements

-- 
l...@iitd - http://tinyurl.com/ycueutm

To unsubscribe from this group, send email to 
iitdlug+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to