• Home
  • LLMs
  • Docker
  • Kubernetes
  • Java
  • All
  • About
Linux-Ubuntu | Special Characters
  1. Examples

  1. Examples
    • The character double quote (") is used to delimit a string value.
      If the string contains special characters ($, \), they will be interpreted before returning the final result.
      $ var1=xyz
      
      $ echo "text1 $var1 \$notvar"
      text1 xyz $notvar

    • The character single quote (') is used to delimit a string value.
      If the string contains special characters ($, \), they will not be interpreted and they will be returned as is in the final result.
      $ var1=xyz
      
      $ echo 'text1 $var1 \$notvar'
      text1 $var1 \$notvar

    • The character grave accent (`) is used to delimit a string value.
      The whole string will be interpreted before returning the final result.
      $ echo `date | tr [A-Z] [a-z]`
      sat 24 feb 2015 16:21:33 est
© 2025  mtitek