.NETJiNi@jigneshdesai.com  
  Home |  .NET<1.0 to 3.5> Forums Blogs |  Other Technologies Skip Navigation Links  | Quiz Contest   dotnetJini Training |   Software Development 
   
Topic : Referencing Variables
Author : CodeHUNT Total Visits: 92
Published Date: Monday, March 27, 2000  

Use $variable (or, if necessary, ${variable}) to reference the value.
    # Most user's have a /bin of their own

    if [ "$USER" != "root" ]; then
            PATH=$HOME/bin:$PATH
    else
            PATH=/etc:/usr/etc:$PATH
    fi
The braces are required for concatenation constructs.
                            








 
   
   
   
Add URL | About ME Privacy Policy | Legal Disclaimer

Copyright (C) 2004 -2008 JigneshDesai.com. All rights reserved