#!/bin/bash
a=23
echo '$a'
echo "$a"
your_name='runoob'
str="Hello, I know you are \"$your_name\ "! \n"
echo -e $str
echo $str
Output
bogon:Desktop macname$ ./test.sh
$a
23
Hello, I know you are "runoob"!
Hello, I know you are "runoob"! \n
Reference:
< p>https://www.runoob.com/linux/linux-shell-variable.html
#!/bin/bash
a=23
echo '$a'
echo "$a"
your_name='runoob'
str="Hello, I know you are \"$your_name\ "! \n"
echo -e $str
echo $str
bogon:Desktop macname$ ./test.sh
$a
23
Hello, I know you are "runoob"!
Hello, I know you are "runoob"! \n