SINGLE QUOTES AND BACKSLASH

  • The shell substitutes variable names and wildmasks before executing the command - sometimes this is undesirable.
  • To avoid substitutions either
    1. prefix the special character (wildmask or $ sign) with a backslash: \
    2. put the desired string in single quotes: '

  • Examples:
    $ var1=im1.nii.gz
    $ echo $var1
      im1.nii.gz
    $ echo \$var1
      $var1
    $ echo '$var1'
      $var1