access environment variables in bash code example
Example 1: bash set environment variable
# Linux - Bash
# syntax
# export *<variable-name>=*<variable-value>;
# example
export ORACLE_SID='sales_database';
Example 2: bash get environment variable
Just type next command to list all environments varialbes in terminal:
printenv