If the pattern matches the BEGINNING of the variables value, delete the SHORTEST part that matches and return the rest
If the pattern matches the BEGINNING of the variables value, delete the LONGEST part that matches and return the rest
If the pattern matches the END of the variables value, delete the SHORTEST part that matches and return the rest
If the pattern matches the END of the variables value, delete the LONGEST part that matches and return the rest
$ 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
$