single quote sign
一个长字符串时, 一般用单引号括起来.当用单引号实现引用处理时,字符串的所有元字符都失去他们的作用.
当字符串含有单引号时,应用双引号括起来.
double quote sign
很多情况下,需要对一些元字符进行引用处理而又不允许另一些字符由shell处理.这时就需用双引号.
example1:
$PI=3.14
$echo'the pi's value is $PI'
the pi's value is $PI
$echo"the pi's value is $PI"
the pi's value is 3.14
example2:
$echo hell"o; wo"rd
hello; word
$echo the '$USER