Variable Substrings

On the keyboard the # is on the left (BEGINNING) and the % is on the right (END)

Example

   $ cd
   $ MYVAR='/export/home/derek/my.unix.file'
   $ echo ${MYVAR##/*/}
      my.unix.file
   $ echo ${MYVAR#/*/}
      home/derek/my.unix.file
   $ echo ${MYVAR}
      /export/home/derek/my.unix.file
   $ echo ${MYVAR%.*}
      /export/home/derek/my.unix
   $ echo ${MYVAR%%.*}
      /export/home/derek/my
   $