C Shell Scripting/Modifiers

In C shell, the path value obtained from a variable can be modified before it is used into a command or expression. Variable modifiers are given after a colon (:) at the end of a variable. The meaning of the modifiers are as follows:

:h returns the directory of a path (aka "head"):t returns the filename of a path (aka "tail"):r returns the directory and filename without the last extension (aka "root"):e returns the extension of the path (aka "end")