Example Bourne or Korn script to define and export variables


The following Bourne\Korn script defines and exports several variables:


HOME=X:
PATROL_HOME=$HOME/patrol
PATROL_CFG=$PATROL_HOME/config
PATROL_CACHE=$HOME/patrol

export HOME
export PATROL_HOME
export PATROL_CFG
export PATROL_CACHE

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*