set directory in bash script in variable code example
Example 1: bash change to script directory
cd "$(dirname "${BASH_SOURCE[0]}")"
Example 2: bash set environment variable
# Linux - Bash
# syntax
# export *<variable-name>=*<variable-value>;
# example
export ORACLE_SID='sales_database';