4.2. Variable Assignment: The Assignment Operator (No Space Before and After)
4.2. Variable Assignment: The Assignment Operator (No Space Before and After)
4.2. Variable Assignment: The Assignment Operator (No Space Before and After)
Prev Next
(varsubn.html) Chapter 4. Introduction to Variables and Parameters (untyped.html)
echo
# Assignment
a=879
echo "The value of \"a\" is $a."
echo
echo
echo
echo
exit 0
exit 0
Variable assignment using the $(...) mechanism (a newer method than backquotes
(commandsub.html#BACKQUOTESREF)). This is likewise a form of command
substitution (commandsub.html#COMMANDSUBREF).
# From /etc/rc.d/rc.local
R=$(cat /etc/redhat-release)
arch=$(uname -m)