The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 08-20-2007
namishtiwari namishtiwari is offline
Registered User
 

Join Date: Aug 2007
Location: Bangalore
Posts: 288
Thumbs up

Varun,
If you are using a variable and want to acces the value of the variable then only you need to put $ sign otherwise not needed.

suppose

path=/usr/bin/this

if you are using this path variable in ur script then you have to put a $ sign before that to access the value.
otherwise directly you can hardcode that value without the $ sign as you did in your if statement.

Thanks
Namish

Last edited by namishtiwari; 08-20-2007 at 02:15 AM..
Reply With Quote