Answers for "print variable in bash"

1

echo variable bash

echo "${var}"
Posted by: Guest on August-18-2020
1

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
Posted by: Guest on October-27-2020
4

bash create variable

#create a variable to store name
name="Lance Armah"
Posted by: Guest on September-22-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language