$ string="Hello World"
$ echo $string
$ echo '$string "string"'
$
Double Quotes (" "): Preserve the literal value of all characters within the quotes. Rules Exception are: ‘$’, ‘`’ and‘\’ (shell expansion). For example,
string="Hello World"
echo $string
echo "My first script: $string, \"string\", "string""
$
Back Quotes or Back Sticks(``):Command Substitution (idem $() )
For example,
echo `date`, $(date)
$
No hay comentarios:
Publicar un comentario