In this example we declare simple bash variable and print it on the screen ( stdout ) with echo command.

#!/bin/bash
STRING=”HELLO WORLD!!!”
echo $STRING

 

Sumber: http://linuxconfig.org/Bash_scripting_Tutorial