onebeartoe.org - Programming Languages

Bash, also known as the Bourne again shell, is found on Unix and Linux operating systems.  It is used on the command line interface and in scripts saved as text files.

Variables

Variables can be set in Bash scripts with the assignment operator '=' and later used with the '$' character.  An example:

    echo $environment

    environment=development

    echo $environment
            

Output:


    development