SHELL Script Variable Declaration

  • Local Variables
  • Environment Variables
  • Shell Variables (special)

Local Variables:

created and maintained by user.

Syntax: variable=value

Example:
a=10
Echo $a

Environment Variables:

Examples:

echo $HOME
echo $PWD

Shell Variables (special):

Example:
echo $#
echo $?
echo $-
echo $$
echo $*

Comments

Popular posts from this blog

Oracle Database 19C Performance Tunning - PART 1

Oracle Patching Using Opatch Utility

Oracle RMAN Backup And Restore

PostgreSQL Opensource Installation in RHEL or Oracle Linux(OEL) 8 and above

Pg_pool-II Installation and Configuration