Setting and getting variables



examples/script/variables.sh
name=foobar
echo $name

occupation=shell programmer
echo $occupation

echo "Hello $name"
echo $nameit
echo ${name}it

$ ./examples/script/variables.sh 
foobar
./examples/script/variables.sh: line 5: programmer: command not found

Hello foobar

foobarit

There are empty lines printing the content of 'occupation' and that of the variable 'nameit'.