Variable declaration

Variable Declarations - Shell Scripting

Variable Declarations - Shell Scripting - 5.0 out of 5 based on 1 vote
User Rating:  / 1
PoorBest 

Variables need not be declared. Space is an important criteria in shell scripting. We should not give any space in-between the variable name , = and value.

a=10

a=”madeeswer”

In order to print the variable we have to use echo command and $ symbol in front of the variable.

Note: during declaration we dint use any $ symbol

echo $a

Shell script is also case sensitive.

 

 

You are here: Home Tutorials Shell Scripting Variable Declarations