How to declare variable in bash script code example
Example 1: definition varibale in bash
fullname='Restu Wahyu Saputra'
echo $fullname
Example 2: bash create variable
name="Lance Armah"
Example 3: print variable in bash
#!/bin/bash
echo
echo "When single quote is used with string:"
invitation='Welcome to javatpoint'
echo $invitation
echo
echo "When double quote is used with string:"
invitation="Welcome to javatpoint"
echo $invitation
echo
echo "When variable is used with double quote:"
Remark="Hello User!, $invitation"
echo $Remark
echo
echo "When variable is used with single quote:"
Remark='Hello User!, $invitation'
echo $Remark
echo